summaryrefslogtreecommitdiffstats
path: root/src/client/openai.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-02-13 13:07:23 +0800
committerGitHub <noreply@github.com>2024-02-13 13:07:23 +0800
commit3bf0c371e407c8c6d03840cac6662ddfbbea484c (patch)
treebd1ce7fd10debd910d6170c0dea9ace6ffb84511 /src/client/openai.rs
parent25b27c148abd1fe0473304947c9b3a2194347326 (diff)
downloadaichat-3bf0c371e407c8c6d03840cac6662ddfbbea484c.tar.gz
feat: update openai/qianwen/gemini models (#306)
Diffstat (limited to 'src/client/openai.rs')
-rw-r--r--src/client/openai.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/openai.rs b/src/client/openai.rs
index cf6cc89..9c28473 100644
--- a/src/client/openai.rs
+++ b/src/client/openai.rs
@@ -13,12 +13,12 @@ use serde_json::{json, Value};
const API_BASE: &str = "https://api.openai.com/v1";
const MODELS: [(&str, usize, &str); 7] = [
- ("gpt-3.5-turbo", 4096, "text"),
- ("gpt-3.5-turbo-16k", 16385, "text"),
+ ("gpt-3.5-turbo", 16385, "text"),
("gpt-3.5-turbo-1106", 16385, "text"),
("gpt-4", 8192, "text"),
("gpt-4-32k", 32768, "text"),
("gpt-4-1106-preview", 128000, "text"),
+ ("gpt-4-turbo-preview", 128000, "text"),
("gpt-4-vision-preview", 128000, "text,vision"),
];