Ver código fonte

Merge remote-tracking branch 'remotes/origin/HEAD' into bug_fix

suruiqiang 10 meses atrás
pai
commit
d74f79e9c5

+ 6 - 1
.env.template

@@ -73,6 +73,11 @@ ANTHROPIC_API_VERSION=
 ### anthropic claude Api url (optional)
 ANTHROPIC_URL=
 
-
 ### (optional)
 WHITE_WEBDAV_ENDPOINTS=
+
+### siliconflow Api key (optional)
+SILICONFLOW_API_KEY=
+
+### siliconflow Api url (optional)
+SILICONFLOW_URL=

+ 6 - 0
app/constant.ts

@@ -510,10 +510,14 @@ const googleModels = [
   "gemini-exp-1114",
   "gemini-exp-1121",
   "gemini-exp-1206",
+  "gemini-2.0-flash",
   "gemini-2.0-flash-exp",
+  "gemini-2.0-flash-lite-preview-02-05",
   "gemini-2.0-flash-thinking-exp",
   "gemini-2.0-flash-thinking-exp-1219",
   "gemini-2.0-flash-thinking-exp-01-21",
+  "gemini-2.0-pro-exp",
+  "gemini-2.0-pro-exp-02-05",
 ];
 
 const anthropicModels = [
@@ -621,6 +625,8 @@ const siliconflowModels = [
   "deepseek-ai/DeepSeek-V3",
   "meta-llama/Llama-3.3-70B-Instruct",
   "THUDM/glm-4-9b-chat",
+  "Pro/deepseek-ai/DeepSeek-R1",
+  "Pro/deepseek-ai/DeepSeek-V3",
 ];
 
 let seq = 1000; // 内置的模型序号生成器从1000开始

+ 1 - 1
app/icons/llm-icons/grok.svg

@@ -1,4 +1,4 @@
-<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 30 30"
+<svg fill="#333" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 30 30"
      width="1em" xmlns="http://www.w3.org/2000/svg">
     <title>Grok</title>
     <rect width="30" height="30" fill="#E7F8FF" rx="6"/>

+ 1 - 1
app/icons/llm-icons/moonshot.svg

@@ -1,4 +1,4 @@
-<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 30 30"
+<svg fill="#333" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 30 30"
      width="1em" xmlns="http://www.w3.org/2000/svg">
     <title>MoonshotAI</title>
     <rect width="30" height="30" fill="#E7F8FF" rx="6"/>

+ 1 - 1
app/icons/llm-icons/openai.svg

@@ -1,4 +1,4 @@
-<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 30 30"
+<svg fill="#333" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 30 30"
      width="1em" xmlns="http://www.w3.org/2000/svg">
     <title>OpenAI</title>
     <rect width="30" height="30" fill="#E7F8FF" rx="6"/>