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