mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
Merge pull request #5 from elie222/patch-2
Remove unnecessary convertToCoreMessages
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { streamText as _streamText, convertToCoreMessages } from 'ai';
|
||||
import { streamText as _streamText } from 'ai';
|
||||
import { getAPIKey } from '~/lib/.server/llm/api-key';
|
||||
import { getAnthropicModel } from '~/lib/.server/llm/model';
|
||||
import { MAX_TOKENS } from './constants';
|
||||
@@ -29,7 +29,7 @@ export function streamText(messages: Messages, env: Env, options?: StreamingOpti
|
||||
headers: {
|
||||
'anthropic-beta': 'max-tokens-3-5-sonnet-2024-07-15',
|
||||
},
|
||||
messages: convertToCoreMessages(messages),
|
||||
messages,
|
||||
...options,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user