Skip to content

Commit a233529

Browse files
committed
update to grok-beta
1 parent e4d081e commit a233529

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/core/generation.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ export async function generateText({
113113

114114
case ModelProvider.GROK: {
115115
prettyConsole.log("Initializing Grok model.");
116-
const grok = createGroq({ apiKey });
116+
const serverUrl = models[provider].endpoint;
117+
const grok = createOpenAI({ apiKey, baseURL: serverUrl });
117118

118119
const { text: grokResponse } = await aiGenerateText({
119120
model: grok.languageModel(model, {

0 commit comments

Comments
 (0)