From 2a0812471d9655e287cc5363a45f198550d6578a Mon Sep 17 00:00:00 2001 From: Johnny Date: Mon, 21 Apr 2025 10:59:39 +0800 Subject: [PATCH 1/2] adjust openai_compatible field baseURL --- src/atoms/interfaceState.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atoms/interfaceState.ts b/src/atoms/interfaceState.ts index 622763c9..9f0fbf3a 100644 --- a/src/atoms/interfaceState.ts +++ b/src/atoms/interfaceState.ts @@ -84,7 +84,7 @@ export const defaultInterface: Record = inputType: "text", label: "Base URL", description: "Base URL for API calls", - required: false, + required: true, default: "", placeholder: "" }, From 3d4e314e4fbe416fcc429699502fcdac87a7c794 Mon Sep 17 00:00:00 2001 From: Johnny Date: Mon, 21 Apr 2025 11:10:29 +0800 Subject: [PATCH 2/2] add openai_compatible baseURL default --- src/atoms/interfaceState.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/atoms/interfaceState.ts b/src/atoms/interfaceState.ts index 9f0fbf3a..711fd31e 100644 --- a/src/atoms/interfaceState.ts +++ b/src/atoms/interfaceState.ts @@ -85,8 +85,8 @@ export const defaultInterface: Record = label: "Base URL", description: "Base URL for API calls", required: true, - default: "", - placeholder: "" + default: "https://api.openai.com", + placeholder: "https://api.openai.com" }, model: { type: "list",