From d6df1e84a7d4fece6c9107de867a1c4d7d2fee56 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sun, 28 Apr 2024 10:14:12 +0800 Subject: refactor: extract prelude models to models.yaml (#451) --- src/client/qianwen.rs | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/client/qianwen.rs') diff --git a/src/client/qianwen.rs b/src/client/qianwen.rs index 386716f..64d27d4 100644 --- a/src/client/qianwen.rs +++ b/src/client/qianwen.rs @@ -34,19 +34,6 @@ pub struct QianwenConfig { } impl QianwenClient { - list_models_fn!( - QianwenConfig, - [ - // https://help.aliyun.com/zh/dashscope/developer-reference/api-details - ("qwen-turbo", "text", 6000), - ("qwen-plus", "text", 30000), - ("qwen-max", "text", 6000), - ("qwen-max-longcontext", "text", 28000), - // https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-qianwen-vl-plus-api - ("qwen-vl-plus", "text,vision", 0), - ("qwen-vl-max", "text,vision", 0), - ] - ); config_get_fn!(api_key, get_api_key); pub const PROMPTS: [PromptType<'static>; 1] = -- cgit v1.2.3