Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unsupported config key OCO_MODEL error when using oco command #314

Open
watagori opened this issue Mar 18, 2024 · 13 comments
Open

[Bug]: Unsupported config key OCO_MODEL error when using oco command #314

watagori opened this issue Mar 18, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@watagori
Copy link
Contributor

watagori commented Mar 18, 2024

Opencommit Version

v1.0.2 / latest

Node Version

18.17.0

NPM Version

10.5.0

What OS are you seeing the problem on?

Mac

What happened?

Unsupported config key OCO_MODEL error when using oco command

Description

When trying to use the oco command in my terminal, I encountered an error message stating that the config key OCO_MODEL is unsupported. The error persists even when I try to set the OCO_MODEL to one of the suggested values.

Steps to Reproduce

  1. Open the terminal

  2. Run oco --version

  3. Observe the following error message:

     oco --version
    │
    └ ✖ Unsupported config key OCO_MODEL: gpt-3.5-turbo-16k is not supported yet, use 'gpt-4', 'gpt-3.5-turbo' (default), 'gpt-3.5-turbo-0125', 'gpt-4-1106-preview', 'gpt-4-turbo-preview' or 'gpt-4-0125-preview'
    
  4. Attempt to set the OCO_MODEL using oco config set OCO_MODEL=gpt-4-turbo-preview

    oco config set OCO_MODEL=gpt-4-turbo-preview
    │
    └  ✖ Unsupported config key OCO_MODEL: gpt-3.5-turbo-16k is not supported yet, use 'gpt-4', 'gpt-3.5-turbo' (default), 'gpt-3.5-turbo-0125', 'gpt-4-1106-preview', 'gpt-4-turbo-preview' or 'gpt-4-0125-preview'
    

Environment

  • Operating System: macOS
  • Shell: zsh

Expected Behavior

I expected the oco command to work without any errors, and the OCO_MODEL configuration to be set successfully when using one of the suggested values.

Current Behavior

The oco command consistently throws an error message about the unsupported OCO_MODEL config key, even when attempting to set it to one of the suggested values.

Possible Solution

No response

Steps to Reproduce

No response

Relevant log output

No response

@watagori watagori added the bug Something isn't working label Mar 18, 2024
@br-programmer
Copy link

Same bug here

@br-programmer
Copy link

I was able to solve it by opening the .opencommit file that is usually created in your user root directory.
I opened it with VS Code and manually changed the model. Then I saved it, and it worked perfectly for me.
The model I used was gpt-3.5-turbo; previously, I had gpt-3.5-turbo-16k.

@watagori
Copy link
Contributor Author

watagori commented Mar 18, 2024

@br-programmer
Thanks!
I opened the .opencommit and switched the OCO_MODEL manually and it worked.

@watagori
Copy link
Contributor Author

Share the environment when it works.

node -v
v18.17.0
npm -v
10.5.0
oco --version
3.0.12

@watagori watagori reopened this Mar 19, 2024
@watagori
Copy link
Contributor Author

Not sure what caused this and if there is a solution other than manual editing.

@di-sukharev
Copy link
Owner

di-sukharev commented Mar 20, 2024

lets keep this opened please, this is not an expected behaviour
@watagori you experienced this on version v1.0.2?

@seanmccabe
Copy link

Experienced the exact same issue.
I was unable to execute any command, including getting the version, until the .opencommit file was manually edited.

oco --version
3.0.12
node -v
v20.11.1
npm -v
10.2.4

@WMOH-DEV
Copy link

i experienced the same issue once i updated the opencommit to the last version

oco --version
3.0.12
node -v
v20.11.0
npm -v
10.2.4

also tried this command but it doesnt work

oco config set OCO_MODEL=gpt-3.5-turbo
│
└  ✖ Unsupported config key OCO_MODEL: gpt-3.5-turbo-16k is not supported yet, use 'gpt-4', 'gpt-3.5-turbo' (default), 'gpt-3.5-turbo-0125', 'gpt-4-1106-preview', 'gpt-4-turbo-preview' or 'gpt-4-0125-preview'

Edited manually and it works

@di-sukharev
Copy link
Owner

@WMOH-DEV do you know what version you were running before?

@di-sukharev
Copy link
Owner

@seanmccabe do you know what version you were running before?

@WMOH-DEV
Copy link

@WMOH-DEV do you know what version you were running before?

I think 3.0.11

@Champkinz
Copy link

Champkinz commented Mar 28, 2024

Im getting the same error after updating to the latest version.

- oco config set OCO_MODEL=gpt-3.5-turbo
- Unsupported config key OCO_MODEL: gpt-3.5-turbo-16k is not supported yet, use 'gpt-4', 'gpt-3.5-turbo' (default), 'gpt-3.5-turbo-0125', 'gpt-4-1106-preview', 'gpt-4-turbo-preview' or 'gpt-4-0125-preview'

@Champkinz
Copy link

I rolled back to v3.0.11 and it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants