mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
Update stream-text.ts
This commit is contained in:
parent
70412504c6
commit
ece20384bd
@ -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,
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user