mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-01-15 00:28:30 -05:00
Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b79aef5fad | ||
|
|
57d9cc59b5 | ||
|
|
e599700d72 | ||
|
|
2761403735 | ||
|
|
e57033c4a1 | ||
|
|
ca049e4b5d | ||
|
|
a2b1890e7e | ||
|
|
df705b97b7 | ||
|
|
df280b7db7 | ||
|
|
67dff60a7d | ||
|
|
08fb4d801f | ||
|
|
0460a252e2 | ||
|
|
ebeb68fd9b | ||
|
|
a9f550fb79 | ||
|
|
4181c0b20d | ||
|
|
765e9884dd | ||
|
|
ea9411fa69 | ||
|
|
12956d7633 | ||
|
|
c1627bb98c | ||
|
|
4e374aa9db | ||
|
|
ef003bdad6 |
@@ -332,4 +332,6 @@ You pay for your requests to OpenAI API on your own.
|
|||||||
|
|
||||||
OpenCommit stores your key locally.
|
OpenCommit stores your key locally.
|
||||||
|
|
||||||
OpenCommit by default uses ChatGPT (3.5-turbo-16k) official model, which is a lot cheaper than gpt-4.
|
OpenCommit by default uses 3.5-turbo-16k model, it should not exceed $0.10 per casual working day.
|
||||||
|
|
||||||
|
You may switch to gpt-4, it's better, but more expensive.
|
||||||
|
|||||||
@@ -16384,7 +16384,7 @@ function G3(t, e2) {
|
|||||||
// package.json
|
// package.json
|
||||||
var package_default = {
|
var package_default = {
|
||||||
name: "opencommit",
|
name: "opencommit",
|
||||||
version: "3.0.3",
|
version: "3.0.4",
|
||||||
description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
|
description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
|
||||||
keywords: [
|
keywords: [
|
||||||
"git",
|
"git",
|
||||||
@@ -16427,7 +16427,7 @@ var package_default = {
|
|||||||
dev: "ts-node ./src/cli.ts",
|
dev: "ts-node ./src/cli.ts",
|
||||||
build: "rimraf out && node esbuild.config.js",
|
build: "rimraf out && node esbuild.config.js",
|
||||||
"build:push": "npm run build && git add . && git commit -m 'build' && git push",
|
"build:push": "npm run build && git add . && git commit -m 'build' && git push",
|
||||||
deploy: "npm run build:push && npm version patch && git push --follow-tags && npm publish --tag latest",
|
deploy: "npm version patch && npm run build:push && git push --tags && npm publish --tag latest",
|
||||||
lint: "eslint src --ext ts && tsc --noEmit",
|
lint: "eslint src --ext ts && tsc --noEmit",
|
||||||
format: "prettier --write src"
|
format: "prettier --write src"
|
||||||
},
|
},
|
||||||
@@ -21478,7 +21478,7 @@ var validateConfig = (key, condition, validationMessage) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
var configValidators = {
|
var configValidators = {
|
||||||
["OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */](value, config8) {
|
["OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */](value, config8 = {}) {
|
||||||
validateConfig("OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */, value, "Cannot be empty");
|
validateConfig("OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */, value, "Cannot be empty");
|
||||||
validateConfig(
|
validateConfig(
|
||||||
"OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */,
|
"OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */,
|
||||||
|
|||||||
@@ -27900,7 +27900,7 @@ var validateConfig = (key, condition, validationMessage) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
var configValidators = {
|
var configValidators = {
|
||||||
["OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */](value, config7) {
|
["OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */](value, config7 = {}) {
|
||||||
validateConfig("OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */, value, "Cannot be empty");
|
validateConfig("OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */, value, "Cannot be empty");
|
||||||
validateConfig(
|
validateConfig(
|
||||||
"OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */,
|
"OCO_OPENAI_API_KEY" /* OCO_OPENAI_API_KEY */,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "opencommit",
|
"name": "opencommit",
|
||||||
"version": "3.0.3",
|
"version": "3.0.4",
|
||||||
"description": "Auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
|
"description": "Auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"git",
|
"git",
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
"dev": "ts-node ./src/cli.ts",
|
"dev": "ts-node ./src/cli.ts",
|
||||||
"build": "rimraf out && node esbuild.config.js",
|
"build": "rimraf out && node esbuild.config.js",
|
||||||
"build:push": "npm run build && git add . && git commit -m 'build' && git push",
|
"build:push": "npm run build && git add . && git commit -m 'build' && git push",
|
||||||
"deploy": "npm run build:push && npm version patch && git push --follow-tags && npm publish --tag latest",
|
"deploy": "npm version patch && npm run build:push && git push --tags && npm publish --tag latest",
|
||||||
"lint": "eslint src --ext ts && tsc --noEmit",
|
"lint": "eslint src --ext ts && tsc --noEmit",
|
||||||
"format": "prettier --write src"
|
"format": "prettier --write src"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const validateConfig = (
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const configValidators = {
|
export const configValidators = {
|
||||||
[CONFIG_KEYS.OCO_OPENAI_API_KEY](value: any, config?: any) {
|
[CONFIG_KEYS.OCO_OPENAI_API_KEY](value: any, config: any = {}) {
|
||||||
validateConfig(CONFIG_KEYS.OCO_OPENAI_API_KEY, value, 'Cannot be empty');
|
validateConfig(CONFIG_KEYS.OCO_OPENAI_API_KEY, value, 'Cannot be empty');
|
||||||
validateConfig(
|
validateConfig(
|
||||||
CONFIG_KEYS.OCO_OPENAI_API_KEY,
|
CONFIG_KEYS.OCO_OPENAI_API_KEY,
|
||||||
|
|||||||
Reference in New Issue
Block a user