Skip to content

Commit

Permalink
claude ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
odilitime committed Feb 27, 2025
1 parent 9bbcaff commit a4faa64
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/core/src/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2322,16 +2322,15 @@ async function handleOpenAI({
const baseURL =
getCloudflareGatewayBaseURL(runtime, "openai") || endpoint;
const openai = createOpenAI({ apiKey, baseURL });
let prom: Promise<GenerateObjectResult<unknown>>;
prom = aiGenerateObject({
const prom = aiGenerateObject({
model: openai.languageModel(model) as any,
schema,
schemaName,
schemaDescription,
mode,
...modelOptions,
}) as Promise<GenerateObjectResult<unknown>>;
return prom;
});
return prom as any as Promise<GenerateObjectResult<unknown>>;
}

/**
Expand Down

0 comments on commit a4faa64

Please sign in to comment.