mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
build
This commit is contained in:
@@ -57666,9 +57666,11 @@ var AnthropicEngine = class {
|
||||
system: systemMessage,
|
||||
messages: restMessages,
|
||||
temperature: 0,
|
||||
top_p: 0.1,
|
||||
max_tokens: this.config.maxTokensOutput
|
||||
};
|
||||
if (!/claude.*-4-5/.test(params.model)) {
|
||||
params.top_p = 0.1;
|
||||
}
|
||||
try {
|
||||
const REQUEST_TOKENS = messages.map((msg) => tokenCount(msg.content) + 4).reduce((a4, b7) => a4 + b7, 0);
|
||||
if (REQUEST_TOKENS > this.config.maxTokensInput - this.config.maxTokensOutput) {
|
||||
|
||||
@@ -78451,9 +78451,11 @@ var AnthropicEngine = class {
|
||||
system: systemMessage,
|
||||
messages: restMessages,
|
||||
temperature: 0,
|
||||
top_p: 0.1,
|
||||
max_tokens: this.config.maxTokensOutput
|
||||
};
|
||||
if (!/claude.*-4-5/.test(params.model)) {
|
||||
params.top_p = 0.1;
|
||||
}
|
||||
try {
|
||||
const REQUEST_TOKENS = messages.map((msg) => tokenCount(msg.content) + 4).reduce((a4, b4) => a4 + b4, 0);
|
||||
if (REQUEST_TOKENS > this.config.maxTokensInput - this.config.maxTokensOutput) {
|
||||
|
||||
Reference in New Issue
Block a user