Add Routstr preset

This commit is contained in:
Alex Gleason committed 2025-09-16 15:14:29 -05:00
1 parent b289983071
commit 5f1eaed12b
1 file changed
+8 -2
+8 -2
View File
@@ -39,6 +39,12 @@ const PRESET_PROVIDERS: PresetProvider[] = [
baseURL: "https://api.ppq.ai",
apiKeysURL: "https://ppq.ai/api-docs",
},
{
id: "routstr",
name: "Routstr",
baseURL: "https://api.routstr.com/v1",
apiKeysURL: "https://chat.routstr.com/",
},
{
id: "zai",
name: "Z.ai",
@@ -270,7 +276,7 @@ export function AISettings() {
<div key={preset.id} className="border rounded-lg p-4 space-y-3">
<div className="flex items-center justify-between">
<h5 className="font-medium">{preset.name}</h5>
{preset.apiKeysURL && (
{(preset.apiKeysURL && preset.id !== "routstr") && (
<button
type="button"
className="text-xs text-muted-foreground underline hover:text-foreground"
@@ -283,7 +289,7 @@ export function AISettings() {
<div className="flex gap-2">
{!preset.nostr && (
<Input
placeholder="Enter your API key"
placeholder={preset.id === "routstr" ? "Enter a Cashu token" : "Enter your API key"}
type="password"
className="flex-1"
value={presetApiKeys[preset.id] || ''}