mattvr / ShellGPT

Upgrade your terminal with GPT-4. Ask questions, automate commands, pipe I/O, etc. Made with Deno.
MIT License
232 stars 11 forks source link

Keep getting an error even when changing the model to gpt-3.5-turbo #1

Closed gbstan closed 1 year ago

gbstan commented 1 year ago

Even after changing the model to gpt-3.5-turbo using gpt --config. I am using MacOS 13.3.1

I keep getting this error:

Failed to parse message TypeError: Failed to parse message:
"{
    "error": {
        "message": "The model: `gpt-4` does not exist",
        "type": "invalid_request_error",
        "param": null,
        "code": "model_not_found"
    }
}
"
gbstan commented 1 year ago

Further information: I have an OpenAI API Key and have set this up via export OPENAI_API_KEY=...

gbstan commented 1 year ago

This command works: gpt --fast "What is the meaning of life, the universe, and everything?" but the command gpt "What is the meaning of life, the universe, and everything?" throws the error above for some reason.

nmarks99 commented 1 year ago

I'm having the same issue on Ubuntu 22.04

mattvr commented 1 year ago

Sorry about this, should be fixed now.

@gbstan @nmarks99 can you install the latest version and let me know if it fixed via:

deno install -frA --name=gpt https://deno.land/x/shellgpt/mod.ts

nmarks99 commented 1 year ago

Yep it's fixed, thanks!