Update stream-text.ts

This commit is contained in:
Yaqub Mahmoud 2025-01-29 11:03:23 +09:00
parent 70412504c6
commit ece20384bd

View File

@ -30,14 +30,17 @@ export function streamText(messages: Messages, env: Env, options?: StreamingOpti
const azure = createAzure({
resourceName: azureResourceName,
apiKey: azureResourceNameApiKey,
headers: {
'api_version': '2024-11-20',
},
});
return _streamText({
model: azure('gpt-4o'),
// model: azure('gpt-4o-2024-08-06'),
// model: azure('gpt-4o'),
model: azure('gpt-4o-2'),
system: getSystemPrompt(),
messages: convertToCoreMessages(messages),
maxTokens: 4096,
maxTokens: MAX_TOKENS,
...options,
});