summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-03-01 09:58:19 +0000
committersigoden <sigoden@gmail.com>2024-03-01 09:58:19 +0000
commit7633940e03592e2863565bf3acbd98bf92a3e32f (patch)
tree3d386ad605e183b7e90a5a6c89ea2e16e5e77f96 /src/client
parent75fe0b9205cc5ad5285e53ee5881b6d89e8a6000 (diff)
downloadaichat-7633940e03592e2863565bf3acbd98bf92a3e32f.tar.gz
chore: update order of openai models
Diffstat (limited to 'src/client')
-rw-r--r--src/client/openai.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/openai.rs b/src/client/openai.rs
index 9c28473..4ac7d60 100644
--- a/src/client/openai.rs
+++ b/src/client/openai.rs
@@ -15,11 +15,11 @@ const API_BASE: &str = "https://api.openai.com/v1";
const MODELS: [(&str, usize, &str); 7] = [
("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"),
+ ("gpt-4-1106-preview", 128000, "text"),
+ ("gpt-4", 8192, "text"),
+ ("gpt-4-32k", 32768, "text"),
];
pub const OPENAI_TOKENS_COUNT_FACTORS: TokensCountFactors = (5, 2);