From e538060156694eca378b35a28e78e1c7933b1296 Mon Sep 17 00:00:00 2001 From: 1A7432 <96977271+1A7432@users.noreply.github.com> Date: Wed, 17 Sep 2025 11:39:51 +0800 Subject: [PATCH] feat: add xai, glm, and qwen providers to default config (#2714) --- lua/avante/config.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lua/avante/config.lua b/lua/avante/config.lua index e5c4e96..f46dcee 100644 --- a/lua/avante/config.lua +++ b/lua/avante/config.lua @@ -445,6 +445,24 @@ M._defaults = { model = "kimi-k2-0711-preview", api_key_name = "MOONSHOT_API_KEY", }, + xai = { + __inherited_from = "openai", + endpoint = "https://api.x.ai/v1", + model = "grok-code-fast-1", + api_key_name = "XAI_API_KEY", + }, + glm = { + __inherited_from = "openai", + endpoint = "https://open.bigmodel.cn/api/coding/paas/v4", + model = "glm-4.5", + api_key_name = "GLM_API_KEY", + }, + qwen = { + __inherited_from = "openai", + endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1", + model = "qwen3-coder-plus", + api_key_name = "DASHSCOPE_API_KEY", + }, }, ---Specify the special dual_boost mode ---1. enabled: Whether to enable dual_boost mode. Default to false.