diff --git a/api/plugins/__init__.py b/api/plugins/__init__.py
index e2818752..4c306590 100644
--- a/api/plugins/__init__.py
+++ b/api/plugins/__init__.py
@@ -91,7 +91,7 @@ class SettingConfig(TypedDict):
"supported_models": [
{
"provider": ModelProvider.OPENAI.value,
- "models": ["gpt-4o", "gpt-4o-mini", "o1"],
+ "models": ["gpt-4.5-preview", "gpt-4o", "gpt-4o-mini", "o1"],
},
{
"provider": ModelProvider.ANTHROPIC.value,
diff --git a/app/chat/page.tsx b/app/chat/page.tsx
index b183d532..b7034008 100644
--- a/app/chat/page.tsx
+++ b/app/chat/page.tsx
@@ -743,6 +743,7 @@ export default function ChatPage() {
provider={currentSettings?.selectedProvider || ""}
isOpen={showApiKeyModal}
onSubmit={handleApiKeySubmit}
+ onClose={() => setShowApiKeyModal(false)}
/>
>
);
diff --git a/app/page.tsx b/app/page.tsx
index 95f92791..75ca7013 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -305,6 +305,7 @@ export default function Home() {
provider={currentSettings?.selectedProvider || ""}
isOpen={showApiKeyModal}
onSubmit={handleApiKeySubmit}
+ onClose={() => setShowApiKeyModal(false)}
/>
);
diff --git a/components/ui/AuthModal.tsx b/components/ui/AuthModal.tsx
index d38e3c9f..11233191 100644
--- a/components/ui/AuthModal.tsx
+++ b/components/ui/AuthModal.tsx
@@ -18,9 +18,10 @@ interface AuthModalProps {
provider: string;
isOpen: boolean;
onSubmit: (key: string) => void;
+ onClose?: () => void;
}
-export function AuthModal({ provider, isOpen, onSubmit }: AuthModalProps) {
+export function AuthModal({ provider, isOpen, onSubmit, onClose }: AuthModalProps) {
const [apiKey, setApiKey] = useState("");
const [error, setError] = useState("");
@@ -35,7 +36,14 @@ export function AuthModal({ provider, isOpen, onSubmit }: AuthModalProps) {
};
return (
-
2. Install Ollama from{" "}
- ollama.com
+ ollama.com
3. Run Ollama locally with the model of your choice:
@@ -608,7 +672,7 @@ function SettingsContent({ closeSettings }: { closeSettings: () => void }) {
Visit{" "}
-
+
our GitHub repository
{" "}
for detailed setup instructions.
@@ -752,6 +816,17 @@ function SettingsContent({ closeSettings }: { closeSettings: () => void }) {
+
+ {/* API Key Modal */}
+ {
+ setShowApiKeyModal(false);
+ setPendingModelChange(null); // Clear any pending model change
+ }}
+ />
);
}