Comments (12)
We/I are/am using opencommit with gpt4o already and it works fine. Not sure if this helps as feedback.
from opencommit.
set it like this in .opencommit
and it works
OCO_MODEL=gpt-4o
from opencommit.
I tried it, but I receive this message
oco config set OCO_MODEL=gpt-4o ┌ opencommit — config │ └ ✖ Unsupported config key OCO_MODEL: gpt-4o is not supported yet, use 'gpt-4', 'gpt-3.5-turbo-16k' (default), 'gpt-3.5-turbo-0613' or 'gpt-3.5-turbo'
from opencommit.
@cortex225
Please ensure that you are using the latest version of OpenCommit. The current latest version appears to be 3.0.16, which supports gpt-4o.
version check command: oco --version
If you are using the oco hook
, it's important to verify that the installed oco's script version for the git hook is up-to-date. Please note that when you update OpenCommit, the hook script does not automatically update. Therefore, you will need to manually update the hook script.
git hook script: .git/hooks/prepare-commit-msg
from opencommit.
@matscube
yes, I have de right version oco --version 3.0.16
and I got the same message here ```
`InstaHr/Views/Shared/PartialViews/Dashboard/Invoices/_InvoicesBalance.cshtml
│
◇ 📝 Commit message generated
│
└ Generated commit message:
——————————————————
💄 (InvoicesBalance.cshtml): remove unnecessary color-white class from icon to improve visual consistency
💄 (InvoicesBalance.cshtml): fix indentation for better readability
——————————————————
│
│
◇ 📝 Commit message generated
│
└ ✖ Command failed with exit code 1: git commit -m 💄 (InvoicesBalance.cshtml): remove unnecessary color-white class from icon to improve visual consistency
💄 (InvoicesBalance.cshtml): fix indentation for better readability
│
└ ✖ Unsupported config key OCO_MODEL: gpt-4o is not supported yet, use 'gpt-4', 'gpt-3.5-turbo-16k' (default), 'gpt-3.5-turbo-0613' or 'gpt-3.5-turbo'
`
from opencommit.
@cortex225
If possible, could you share the configuration of the config files you are using (.opencommit
and local .env
)?
The .opencommit
file I am using is as follows. Also, I am not using a local .env file.
With this configuration, the oco
command is working correctly.
OCO_OPENAI_API_KEY=sk-..........
OCO_MODEL=gpt-4o
OCO_LANGUAGE=en
OCO_MESSAGE_TEMPLATE_PLACEHOLDER=$msg
OCO_PROMPT_MODULE=conventional-commit
Additionally, would it be possible to create a new git repository and test whether it works there?
$ mkdir test-dir
$ cd test-dir
$ git init
$ echo 'test' > test
$ oco
from opencommit.
Hi, @cortex225
Waiting for review
Best regards.
from opencommit.
@cortex225 you need to check .opencommit
folder in the specific version of your node's node_modules
, it may be that you are using old version in e.g. node v18 instead of v20, just remove all .opencommit
folders in every global node_modules
packages and install opencommit from scratch
from opencommit.
#366 v3.0.17 shipped
from opencommit.
@di-sukharev I have node v21.7.2, And I installed opencommit from scratch, it always same result 😞
from opencommit.
@cortex225 did you look into your global node_modules? please do, there are packages for every version, remove opencommit folder inside every node version folder. then install it again
from opencommit.
@di-sukharev Thanks, it's work 🎉
from opencommit.
Related Issues (20)
- [Bug]: 70 seconds delay before proceeding if using `ollama` option with no internet HOT 1
- [Feature]: Support line-breaks in Message Template
- [Bug]: Unsupported config key OCO_AZURE_ENDPOINT - even when provider is set to openai HOT 11
- [Feature]: make top_p and temperature parameters configurable
- [Bug]: Always used full list of emoji HOT 1
- [Feature]: More customizable commit message template and support for Perforce VCS HOT 6
- [Feature]: how to build with source code ? HOT 2
- Usage and Examples for OCO_OPENAI_BASE_PATH HOT 3
- [Feature]: Possible to use with Fork? HOT 1
- [Feature]: support model gpt-4o-mini HOT 2
- [Feature]: Seed commit with Overview from user
- [Bug]: cannot type the passphrase for the ssh key when i git push HOT 4
- [Bug]: Unsupported config key OCO_MODEL: gpt-4o-mini is not supported yet HOT 2
- [Bug]: zh_CN.json is wrong HOT 3
- [Feature]: Support Flowise as an AI provider HOT 2
- [Feature]: rewrite commit message by sha1 HOT 1
- [Bug]: Error: The text contains a special token that is not allowed: <|endoftext|> HOT 1
- [Bug]: Hook needs env vars set even when using ollama
- [Feature]: Add branch wildcards
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencommit.