summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-11-08 11:39:27 +0800
committerGitHub <noreply@github.com>2023-11-08 11:39:27 +0800
commitc99dd5a2ff8ad5d14754614cf7f390b0b4359b28 (patch)
treee72702736e4f5f7ac72427051442e604258b0387
parent15efa17963186601cea5f238773b05a659dea9c8 (diff)
downloadaichat-c99dd5a2ff8ad5d14754614cf7f390b0b4359b28.tar.gz
feat: add openai:gpt-4-1106-preview (#233)
-rw-r--r--src/client/openai.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/openai.rs b/src/client/openai.rs
index 06a5316..dbe2661 100644
--- a/src/client/openai.rs
+++ b/src/client/openai.rs
@@ -19,11 +19,13 @@ use std::env;
const API_BASE: &str = "https://api.openai.com/v1";
-const MODELS: [(&str, usize); 4] = [
+const MODELS: [(&str, usize); 6] = [
("gpt-3.5-turbo", 4096),
- ("gpt-3.5-turbo-16k", 16384),
+ ("gpt-3.5-turbo-16k", 16385),
+ ("gpt-3.5-turbo-1106", 16385),
("gpt-4", 8192),
("gpt-4-32k", 32768),
+ ("gpt-4-1106-preview", 128000),
];
pub const OPENAI_TOKENS_COUNT_FACTORS: TokensCountFactors = (5, 2);