Compare commits

..

11 Commits

Author SHA1 Message Date
di-sukharev
e17294abc7 3.2.15 2026-04-03 19:04:22 +03:00
di-sukharev
789b4f5e9f pin axios bc of the 1.14.1 virus issue 2026-04-03 19:04:16 +03:00
di-sukharev
9e601ca6b5 build 2026-02-24 15:10:52 +03:00
di-sukharev
4a9b1391a3 3.2.14 2026-02-24 15:10:50 +03:00
di-sukharev
3fe71c1d23 build 2026-02-24 15:09:51 +03:00
di-sukharev
2f2e888098 Merge branch 'master' of github.com:di-sukharev/opencommit 2026-02-24 15:09:37 +03:00
di-sukharev
4fc8284b87 build 2026-02-24 15:09:21 +03:00
GPT8
de5d5cbb95 Merge pull request #521 from muni-corn/claude-fix-top-p
fix(anthropic): remove `top_p` parameter for Claude 4.5 models
2026-02-21 23:32:04 +03:00
municorn
74fff2861b refactor(anthropic): improve model version detection using regex pattern 2025-10-22 08:33:33 -06:00
municorn
a0dc1c87c5 fix(anthropic): correct model detection logic to properly identify Claude 4.5 models 2025-10-22 08:27:39 -06:00
municorn
d65547dcaa fix(anthropic): remove top_p parameter for Claude 4.5 models
Fixes #520.
2025-10-20 15:10:33 -06:00
6 changed files with 20 additions and 9 deletions

2
.npmrc Normal file
View File

@@ -0,0 +1,2 @@
min-release-age=7
save-exact=true

View File

@@ -48509,7 +48509,7 @@ function G3(t2, e3) {
// package.json
var package_default = {
name: "opencommit",
version: "3.2.12",
version: "3.2.14",
description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
keywords: [
"git",
@@ -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) {

View File

@@ -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) {

6
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "opencommit",
"version": "3.2.13",
"version": "3.2.15",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "opencommit",
"version": "3.2.13",
"version": "3.2.15",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",
@@ -20,7 +20,7 @@
"@mistralai/mistralai": "^1.3.5",
"@octokit/webhooks-schemas": "^6.11.0",
"@octokit/webhooks-types": "^6.11.0",
"axios": "^1.3.4",
"axios": "1.9.0",
"chalk": "^5.2.0",
"cleye": "^1.3.2",
"crypto": "^1.0.1",

View File

@@ -1,6 +1,6 @@
{
"name": "opencommit",
"version": "3.2.13",
"version": "3.2.15",
"description": "Auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
"keywords": [
"git",
@@ -93,7 +93,7 @@
"@mistralai/mistralai": "^1.3.5",
"@octokit/webhooks-schemas": "^6.11.0",
"@octokit/webhooks-types": "^6.11.0",
"axios": "^1.3.4",
"axios": "1.9.0",
"chalk": "^5.2.0",
"cleye": "^1.3.2",
"crypto": "^1.0.1",

View File

@@ -35,9 +35,14 @@ export class AnthropicEngine implements AiEngine {
system: systemMessage,
messages: restMessages,
temperature: 0,
top_p: 0.1,
max_tokens: this.config.maxTokensOutput
};
// add top_p for non-4.5 models
if (!/claude.*-4-5/.test(params.model)) {
params.top_p = 0.1;
}
try {
const REQUEST_TOKENS = messages
.map((msg) => tokenCount(msg.content as string) + 4)