Skip to content

Commit

Permalink
fix: remove model check
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed Nov 8, 2023
1 parent 78a54f0 commit d217301
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,5 @@ func InitConfig() (GlobalConfig, error) {
if conf.APIKey == "" {
return GlobalConfig{}, errors.New("Missing API key. Set it in `~/.config/chatgpt/config.json` or by setting the `OPENAI_API_KEY` environment variable. You can find or create your API key at https://platform.openai.com/account/api-keys.")
}
// TODO: support non-chat models
switch conf.Conversation.Model {
case openai.GPT3Dot5Turbo0301, openai.GPT3Dot5Turbo, openai.GPT4, openai.GPT40314, openai.GPT432K0314, openai.GPT432K:
default:
return GlobalConfig{}, errors.New("Invalid model, please choose one of the following: gpt-3.5-turbo-0301, gpt-3.5-turbo, gpt-4, gpt-4-0314, gpt-4-32k-0314, gpt-4-32k")
}
return conf, nil
}

0 comments on commit d217301

Please sign in to comment.