Skip to content

Commit d217301

Browse files
committed
fix: remove model check
1 parent 78a54f0 commit d217301

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

config.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,5 @@ func InitConfig() (GlobalConfig, error) {
159159
if conf.APIKey == "" {
160160
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.")
161161
}
162-
// TODO: support non-chat models
163-
switch conf.Conversation.Model {
164-
case openai.GPT3Dot5Turbo0301, openai.GPT3Dot5Turbo, openai.GPT4, openai.GPT40314, openai.GPT432K0314, openai.GPT432K:
165-
default:
166-
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")
167-
}
168162
return conf, nil
169163
}

0 commit comments

Comments
 (0)