mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-23 03:07:05 +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 modelDetails = MODEL_LIST.find((m) => m.name === currentModel);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const dynamicMaxTokens =
|
const dynamicMaxTokens =
|
||||||
modelDetails && modelDetails.maxTokenAllowed
|
modelDetails && modelDetails.maxTokenAllowed
|
||||||
? Math.min(MAX_TOKENS, modelDetails.maxTokenAllowed)
|
? modelDetails.maxTokenAllowed
|
||||||
: MAX_TOKENS;
|
: MAX_TOKENS;
|
||||||
|
|
||||||
return _streamText({
|
return _streamText({
|
||||||
|
Loading…
Reference in New Issue
Block a user