summaryrefslogtreecommitdiffstats
path: root/src/client/openai.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-03-25 09:21:46 +0800
committerGitHub <noreply@github.com>2024-03-25 09:21:46 +0800
commitbbd0c287261f8876d8c66a4e8015f5a0d8ce6548 (patch)
tree0bc74b4d8e228d0bc1a64188a75a250b366c46c3 /src/client/openai.rs
parent774d991144915368f9eee9740091448b92c17e62 (diff)
downloadaichat-bbd0c287261f8876d8c66a4e8015f5a0d8ce6548.tar.gz
refactor: reorder models (#372)
The capable ones come first.
Diffstat (limited to 'src/client/openai.rs')
-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 1abdd48..a1bd3db 100644
--- a/src/client/openai.rs
+++ b/src/client/openai.rs
@@ -13,13 +13,13 @@ use serde_json::{json, Value};
const API_BASE: &str = "https://api.openai.com/v1";
const MODELS: [(&str, usize, &str); 5] = [
- // https://platform.openai.com/docs/models/gpt-3-5-turbo
- ("gpt-3.5-turbo", 16385, "text"),
- ("gpt-3.5-turbo-1106", 16385, "text"),
// https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo
("gpt-4-turbo-preview", 128000, "text"),
("gpt-4-vision-preview", 128000, "text,vision"),
("gpt-4-1106-preview", 128000, "text"),
+ // https://platform.openai.com/docs/models/gpt-3-5-turbo
+ ("gpt-3.5-turbo", 16385, "text"),
+ ("gpt-3.5-turbo-1106", 16385, "text"),
];
pub const OPENAI_TOKENS_COUNT_FACTORS: TokensCountFactors = (5, 2);