diff options
| author | sigoden <sigoden@gmail.com> | 2024-04-28 10:14:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-28 10:14:12 +0800 |
| commit | d6df1e84a7d4fece6c9107de867a1c4d7d2fee56 (patch) | |
| tree | 5557d35d080e665370a7663d1317df14700d0ea4 /src/client/qianwen.rs | |
| parent | eac01fb129ce5a06e00cc2cc24e31b40e81eb66b (diff) | |
| download | aichat-d6df1e84a7d4fece6c9107de867a1c4d7d2fee56.tar.gz | |
refactor: extract prelude models to models.yaml (#451)
Diffstat (limited to 'src/client/qianwen.rs')
| -rw-r--r-- | src/client/qianwen.rs | 13 |
1 files changed, 0 insertions, 13 deletions
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] = |
