j178 / chatgpt

An elegant interactive CLI for ChatGPT
728 stars 54 forks source link

[Feature] GPT-4 support #22

Closed xilopaint closed 1 year ago

xilopaint commented 1 year ago

Any plans to make the CLI work with GPT-4?

j178 commented 1 year ago

@xilopaint Hi, thanks for the advice. I added custom model support in #23, you are able to use GPT-4 model by creating a config file in ~/.config/chatgpt.json:

{
    "model": "gpt-4"
}

What's more, you are able to change default prompt, tweak parameters like temperature, max_tokens and stream.

xilopaint commented 1 year ago

you are able to use GPT-4 model by creating a config file in ~/.config/chatgpt.json

Please, make the CLI to look for the config file in ~/.config recursively. I'd rather have it at ~/.config/chatgpt/chatgpt.json.

j178 commented 1 year ago

Changed config file location to ~/.config/chatgpt/config.json in https://github.com/j178/chatgpt/commit/ae0320856326cf3287aae4b79f0254c6ec4b9160

xilopaint commented 1 year ago

That's a better fit. Thanks!