Skip to content

Commit 8abaa9a

Browse files
committed
feat: update initialProviders with new base URLs and add 'xai' provider for enhanced model support
1 parent 4dd7332 commit 8abaa9a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/stores/useProviderStore.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ const initialProviders: ModelProvider[] = [
4949
models: [],
5050
apiKey: "",
5151
apiKeyVar: "",
52-
baseUrl: "",
52+
baseUrl: "http://localhost:11434/v1",
5353
},
5454
{
5555
id: "google",
5656
name: "Google",
5757
models: ["gemini-2.5-pro", "gemini-2.5-flash"],
5858
apiKey: "",
5959
apiKeyVar: "GEMINI_API_KEY",
60-
baseUrl: "",
60+
baseUrl: "https://generativelanguage.googleapis.com/v1beta/openai",
6161
},
6262
{
6363
id: "openrouter",
@@ -75,6 +75,14 @@ const initialProviders: ModelProvider[] = [
7575
apiKeyVar: "HF_API_TOKEN",
7676
baseUrl: "https://router.huggingface.co/v1",
7777
},
78+
{
79+
id: "xai",
80+
name: "grok",
81+
models: ["grok-4"],
82+
apiKey: "",
83+
apiKeyVar: "XAI_API_KEY",
84+
baseUrl: "https://api.x.ai/v1",
85+
},
7886
];
7987

8088
export const useProviderStore = create<ProviderState & ProviderActions>()(

0 commit comments

Comments
 (0)