Giter Club home page Giter Club logo

Comments (12)

jakoberpf avatar jakoberpf commented on August 31, 2024

We/I are/am using opencommit with gpt4o already and it works fine. Not sure if this helps as feedback.

from opencommit.

Meowzz95 avatar Meowzz95 commented on August 31, 2024

set it like this in .opencommit and it works

OCO_MODEL=gpt-4o

from opencommit.

cortex225 avatar cortex225 commented on August 31, 2024

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.

matscube avatar matscube commented on August 31, 2024

@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.

cortex225 avatar cortex225 commented on August 31, 2024

@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.

matscube avatar matscube commented on August 31, 2024

@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.

XiaomaiTX avatar XiaomaiTX commented on August 31, 2024

Hi, @cortex225

#365

Waiting for review

Best regards.

from opencommit.

di-sukharev avatar di-sukharev commented on August 31, 2024

@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.

di-sukharev avatar di-sukharev commented on August 31, 2024

#366 v3.0.17 shipped

from opencommit.

cortex225 avatar cortex225 commented on August 31, 2024

@di-sukharev I have node v21.7.2, And I installed opencommit from scratch, it always same result 😞

from opencommit.

di-sukharev avatar di-sukharev commented on August 31, 2024

@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.

cortex225 avatar cortex225 commented on August 31, 2024

@di-sukharev Thanks, it's work 🎉

from opencommit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.