diff options
| author | sigoden <sigoden@gmail.com> | 2024-04-10 21:02:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-10 21:02:26 +0800 |
| commit | 01ebc8734838e13fb533022c1d24e7003ed42935 (patch) | |
| tree | d1dab513c71451a7f3557443183151fb70e723a1 /src/client | |
| parent | 4a5ee3ecb793362228a88f8c1609bd830eb88cc1 (diff) | |
| download | aichat-01ebc8734838e13fb533022c1d24e7003ed42935.tar.gz | |
refactor: update openai models list (#400)
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/openai.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/openai.rs b/src/client/openai.rs index f7378dd..56cc53c 100644 --- a/src/client/openai.rs +++ b/src/client/openai.rs @@ -12,10 +12,14 @@ use serde_json::{json, Value}; const API_BASE: &str = "https://api.openai.com/v1"; -const MODELS: [(&str, usize, &str); 4] = [ +const MODELS: [(&str, usize, &str); 8] = [ // https://platform.openai.com/docs/models ("gpt-3.5-turbo", 16385, "text"), + ("gpt-3.5-turbo-1106", 16385, "text"), ("gpt-4-turbo", 128000, "text,vision"), + ("gpt-4-turbo-preview", 128000, "text"), + ("gpt-4-1106-preview", 128000, "text"), + ("gpt-4-vision-preview", 128000, "text,vision"), ("gpt-4", 8192, "text"), ("gpt-4-32k", 32768, "text"), ]; |
