summaryrefslogtreecommitdiffstats
path: root/src/client/qianwen.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/qianwen.rs
parent25b27c148abd1fe0473304947c9b3a2194347326 (diff)
downloadaichat-3bf0c371e407c8c6d03840cac6662ddfbbea484c.tar.gz
feat: update openai/qianwen/gemini models (#306)
Diffstat (limited to 'src/client/qianwen.rs')
-rw-r--r--src/client/qianwen.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/qianwen.rs b/src/client/qianwen.rs
index b9254ff..70c251a 100644
--- a/src/client/qianwen.rs
+++ b/src/client/qianwen.rs
@@ -24,12 +24,13 @@ const API_URL: &str =
const API_URL_VL: &str =
"https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation";
-const MODELS: [(&str, usize, &str); 5] = [
+const MODELS: [(&str, usize, &str); 6] = [
("qwen-turbo", 8192, "text"),
("qwen-plus", 32768, "text"),
("qwen-max", 8192, "text"),
("qwen-max-longcontext", 30720, "text"),
("qwen-vl-plus", 0, "text,vision"),
+ ("qwen-vl-max", 0, "text,vision"),
];
#[derive(Debug, Clone, Deserialize, Default)]