From 9b5711d3124622b1f1b18500d442c76492da877a Mon Sep 17 00:00:00 2001
From: chunhualin1 <chunhualin1@lenovo.com>
Date: 星期一, 17 八月 2026 16:52:33 +0800
Subject: [PATCH] 优化llm插件及bug修复

---
 samples/plugins/sample.llm-command-palette/plugin.json |   79 ++++++++++++---------------------------
 1 files changed, 24 insertions(+), 55 deletions(-)

diff --git a/samples/plugins/sample.llm-command-palette/plugin.json b/samples/plugins/sample.llm-command-palette/plugin.json
index 2751927..b45d761 100644
--- a/samples/plugins/sample.llm-command-palette/plugin.json
+++ b/samples/plugins/sample.llm-command-palette/plugin.json
@@ -26,79 +26,48 @@
     "aichat": {
       "baseUrl": "http://192.168.1.111:13000",
       "account": {
-        "email": "linmolilin@163.com",
+        "email": null,
         "password": null,
         "passwordEnv": "MOLI_AICHAT_PASSWORD"
       },
-      "defaultProjectId": "cmnd8uzcl0002c9usch183a01",
+      "defaultProjectId": null,
       "memory": {
         "enabledInProviderDirect": true,
         "defaultScope": "PROJECT",
         "recallLimit": 8
       }
     },
-    "defaultModel": "deepseek-v4-flash",
-    "models": [
+    "defaultModel": null,
+    "providers": [
       {
-        "id": "deepseek-v4-flash",
-        "label": "deepseek-v4-flash",
-        "provider": "deepseek",
-        "endpoint": "https://api.deepseek.com/chat/completions",
+        "id": "deepseek",
+        "label": "DeepSeek",
+        "baseUrl": "https://api.deepseek.com",
         "authRef": "llm_deepseek_api_key",
-        "apiModel": "deepseek-v4-flash",
-        "supportsStreaming": true,
-        "enabled": true,
-        "requestDefaults": {
-          "temperature": 0.9,
-          "maxTokens": 2560000,
-          "timeoutMs": 60000
-        }
+        "enabled": true
       },
       {
-        "id": "kimi-k2.6",
-        "label": "kimi-k2.6",
-        "provider": "kimi",
-        "endpoint": "https://api.moonshot.cn/v1/chat/completions",
+        "id": "kimi",
+        "label": "Kimi",
+        "baseUrl": "https://api.moonshot.cn/v1",
         "authRef": "llm_kimi_api_key",
-        "apiModel": "kimi-k2.6",
-        "supportsStreaming": true,
-        "enabled": true,
-        "requestDefaults": {
-          "temperature": 0.9,
-          "maxTokens": 2560000,
-          "timeoutMs": 60000
-        }
+        "enabled": true
       },
       {
-        "id": "glm-4.7-flash",
-        "label": "glm-4.7-flash",
-        "provider": "bigmodel",
-        "endpoint": "https://open.bigmodel.cn/api/paas/v4/chat/completions",
+        "id": "bigmodel",
+        "label": "鏅鸿氨",
+        "baseUrl": "https://open.bigmodel.cn/api/paas/v4",
         "authRef": "llm_bigmodel_api_key",
-        "apiModel": "glm-4.7-flash",
-        "supportsStreaming": true,
-        "enabled": true,
-        "requestDefaults": {
-          "temperature": 0.9,
-          "maxTokens": 2000000,
-          "timeoutMs": 60000
-        }
+        "enabled": true
       },
       {
-        "id": "qwen3.6-plus",
-        "label": "qwen3.6-plus",
-        "provider": "qwen",
-        "endpoint": "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
-        "authRef": "llm_bigmodel_api_key",
-        "apiModel": "qwen3.6-plus",
-        "supportsStreaming": true,
-        "enabled": true,
-        "requestDefaults": {
-          "temperature": 0.9,
-          "maxTokens": 2560000,
-          "timeoutMs": 60000
-        }
+        "id": "qwen",
+        "label": "閫氫箟",
+        "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
+        "authRef": "llm_qwen_api_key",
+        "enabled": true
       }
-    ]
+    ],
+    "models": []
   }
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1