opencommit 3.0.18 → 3.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/cli.cjs +4 -8
- package/package.json +2 -2
package/out/cli.cjs
CHANGED
|
@@ -28111,7 +28111,7 @@ function G3(t2, e3) {
|
|
|
28111
28111
|
// package.json
|
|
28112
28112
|
var package_default = {
|
|
28113
28113
|
name: "opencommit",
|
|
28114
|
-
version: "3.0.
|
|
28114
|
+
version: "3.0.19",
|
|
28115
28115
|
description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
|
|
28116
28116
|
keywords: [
|
|
28117
28117
|
"git",
|
|
@@ -30663,6 +30663,7 @@ var TestAi = class {
|
|
|
30663
30663
|
// src/commands/config.ts
|
|
30664
30664
|
var MODEL_LIST = {
|
|
30665
30665
|
openai: [
|
|
30666
|
+
"gpt-4o-mini",
|
|
30666
30667
|
"gpt-3.5-turbo",
|
|
30667
30668
|
"gpt-3.5-turbo-instruct",
|
|
30668
30669
|
"gpt-3.5-turbo-0613",
|
|
@@ -30687,7 +30688,6 @@ var MODEL_LIST = {
|
|
|
30687
30688
|
"gpt-4-32k-0613",
|
|
30688
30689
|
"gpt-4o",
|
|
30689
30690
|
"gpt-4o-2024-05-13",
|
|
30690
|
-
"gpt-4o-mini",
|
|
30691
30691
|
"gpt-4o-mini-2024-07-18"
|
|
30692
30692
|
],
|
|
30693
30693
|
anthropic: [
|
|
@@ -30731,7 +30731,7 @@ var configValidators = {
|
|
|
30731
30731
|
validateConfig(
|
|
30732
30732
|
"OpenAI API_KEY",
|
|
30733
30733
|
value || config12.OCO_ANTHROPIC_API_KEY || config12.OCO_AI_PROVIDER.startsWith("ollama") || config12.OCO_AZURE_API_KEY || config12.OCO_AI_PROVIDER == "test" || config12.OCO_AI_PROVIDER == "flowise",
|
|
30734
|
-
"You need to provide an OpenAI/Anthropic/Azure API key"
|
|
30734
|
+
"You need to provide an OpenAI/Anthropic/Azure or other provider API key via `oco config set OCO_OPENAI_API_KEY=your_key`, for help refer to docs https://github.com/di-sukharev/opencommit"
|
|
30735
30735
|
);
|
|
30736
30736
|
validateConfig(
|
|
30737
30737
|
"OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */,
|
|
@@ -30841,11 +30841,7 @@ var configValidators = {
|
|
|
30841
30841
|
["OCO_MODEL" /* OCO_MODEL */](value, config12 = {}) {
|
|
30842
30842
|
validateConfig(
|
|
30843
30843
|
"OCO_MODEL" /* OCO_MODEL */,
|
|
30844
|
-
|
|
30845
|
-
...MODEL_LIST.openai,
|
|
30846
|
-
...MODEL_LIST.anthropic,
|
|
30847
|
-
...MODEL_LIST.gemini
|
|
30848
|
-
].includes(value) || config12.OCO_AI_PROVIDER == "ollama" || config12.OCO_AI_PROVIDER == "azure" || config12.OCO_AI_PROVIDER == "test" || config12.OCO_AI_PROVIDER == "flowise",
|
|
30844
|
+
typeof value === "string",
|
|
30849
30845
|
`${value} is not supported yet, use:
|
|
30850
30846
|
|
|
30851
30847
|
${[
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencommit",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"description": "Auto-generate
|
|
3
|
+
"version": "3.0.19",
|
|
4
|
+
"description": "Auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"git",
|
|
7
7
|
"chatgpt",
|