summaryrefslogtreecommitdiffstats
path: root/src/client/qianwen.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-04-06 09:10:42 +0800
committerGitHub <noreply@github.com>2024-04-06 09:10:42 +0800
commite28b53a405256f040db329fbb23676b0e9f10774 (patch)
tree0117999e705599a582c7e0baa6e3112365f96cf9 /src/client/qianwen.rs
parent2654542601df9cc472ccc17487d8852dcb2c0d1d (diff)
downloadaichat-e28b53a405256f040db329fbb23676b0e9f10774.tar.gz
refactor: update models (#388)
Diffstat (limited to 'src/client/qianwen.rs')
-rw-r--r--src/client/qianwen.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/qianwen.rs b/src/client/qianwen.rs
index a95556b..3e69dae 100644
--- a/src/client/qianwen.rs
+++ b/src/client/qianwen.rs
@@ -28,13 +28,13 @@ const API_URL_VL: &str =
const MODELS: [(&str, usize, &str); 6] = [
// https://help.aliyun.com/zh/dashscope/developer-reference/api-details
+ ("qwen-turbo", 6000, "text"),
+ ("qwen-plus", 30000, "text"),
("qwen-max", 6000, "text"),
("qwen-max-longcontext", 28000, "text"),
- ("qwen-plus", 30000, "text"),
- ("qwen-turbo", 6000, "text"),
// https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-qianwen-vl-plus-api
- ("qwen-vl-max", 0, "text,vision"),
("qwen-vl-plus", 0, "text,vision"),
+ ("qwen-vl-max", 0, "text,vision"),
];
const TOKENS_COUNT_FACTORS: TokensCountFactors = (4, 14);