mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-06 04:48:04 +00:00
Update stream-text.ts dynamic model max Token updated
This commit is contained in:
parent
4269d57ea8
commit
e1c3d603df
@ -68,9 +68,11 @@ export function streamText(
|
||||
|
||||
const modelDetails = MODEL_LIST.find((m) => m.name === currentModel);
|
||||
|
||||
|
||||
|
||||
const dynamicMaxTokens =
|
||||
modelDetails && modelDetails.maxTokenAllowed
|
||||
? Math.min(MAX_TOKENS, modelDetails.maxTokenAllowed)
|
||||
modelDetails && modelDetails.maxTokenAllowed
|
||||
? modelDetails.maxTokenAllowed
|
||||
: MAX_TOKENS;
|
||||
|
||||
return _streamText({
|
||||
|
Loading…
Reference in New Issue
Block a user