We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4d081e commit a233529Copy full SHA for a233529
core/src/core/generation.ts
@@ -113,7 +113,8 @@ export async function generateText({
113
114
case ModelProvider.GROK: {
115
prettyConsole.log("Initializing Grok model.");
116
- const grok = createGroq({ apiKey });
+ const serverUrl = models[provider].endpoint;
117
+ const grok = createOpenAI({ apiKey, baseURL: serverUrl });
118
119
const { text: grokResponse } = await aiGenerateText({
120
model: grok.languageModel(model, {
0 commit comments