Skip to content

Commit

Permalink
Merge pull request elizaOS#446 from darwintree/patch-2
Browse files Browse the repository at this point in the history
fix: ignored modelEndpointOverride in generation
  • Loading branch information
ponderingdemocritus authored Nov 21, 2024
2 parents fd22896 + 776de16 commit 693600b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,8 @@ async function handleOpenAI({
mode,
modelOptions,
}: ProviderOptions): Promise<GenerateObjectResult<unknown>> {
const openai = createOpenAI({ apiKey });
const baseURL = models.openai.endpoint || undefined
const openai = createOpenAI({ apiKey, baseURL });
return await aiGenerateObject({
model: openai.languageModel(model),
schema,
Expand Down

0 comments on commit 693600b

Please sign in to comment.