|
@@ -1019,7 +1019,7 @@ export namespace Session {
|
|
|
: undefined,
|
|
: undefined,
|
|
|
maxRetries: 3,
|
|
maxRetries: 3,
|
|
|
activeTools: Object.keys(tools).filter((x) => x !== "invalid"),
|
|
activeTools: Object.keys(tools).filter((x) => x !== "invalid"),
|
|
|
- maxOutputTokens: outputLimit,
|
|
|
|
|
|
|
+ maxOutputTokens: ProviderTransform.maxOutputTokens(model.providerID, outputLimit, params.options),
|
|
|
abortSignal: abort.signal,
|
|
abortSignal: abort.signal,
|
|
|
stopWhen: async ({ steps }) => {
|
|
stopWhen: async ({ steps }) => {
|
|
|
if (steps.length >= 1000) {
|
|
if (steps.length >= 1000) {
|