File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -57666,9 +57666,11 @@ var AnthropicEngine = class {
5766657666 system: systemMessage,
5766757667 messages: restMessages,
5766857668 temperature: 0,
57669- top_p: 0.1,
5767057669 max_tokens: this.config.maxTokensOutput
5767157670 };
57671+ if (!/claude.*-4-5/.test(params.model)) {
57672+ params.top_p = 0.1;
57673+ }
5767257674 try {
5767357675 const REQUEST_TOKENS = messages.map((msg) => tokenCount(msg.content) + 4).reduce((a4, b7) => a4 + b7, 0);
5767457676 if (REQUEST_TOKENS > this.config.maxTokensInput - this.config.maxTokensOutput) {
Original file line number Diff line number Diff line change @@ -78451,9 +78451,11 @@ var AnthropicEngine = class {
7845178451 system: systemMessage,
7845278452 messages: restMessages,
7845378453 temperature: 0,
78454- top_p: 0.1,
7845578454 max_tokens: this.config.maxTokensOutput
7845678455 };
78456+ if (!/claude.*-4-5/.test(params.model)) {
78457+ params.top_p = 0.1;
78458+ }
7845778459 try {
7845878460 const REQUEST_TOKENS = messages.map((msg) => tokenCount(msg.content) + 4).reduce((a4, b4) => a4 + b4, 0);
7845978461 if (REQUEST_TOKENS > this.config.maxTokensInput - this.config.maxTokensOutput) {
You can’t perform that action at this time.
0 commit comments