AIAgent: fix openrouter

This commit is contained in:
Timofey
2025-11-17 23:30:01 +08:00
parent 7ac03b2bd8
commit 9ed77f76f1
3 changed files with 5 additions and 4 deletions

View File

@ -43,6 +43,7 @@ const ServersSettings = () => {
servers["web-search"][0].name,
!webSearchEnabled
);
window.dispatchEvent(new CustomEvent("tools-changed"));
},
},
{ text: "", onClick: () => {}, isSeparator: true },

View File

@ -319,8 +319,8 @@ class OpenRouterProvider
model.id === "anthropic/claude-haiku-4.5" ||
model.id === "anthropic/claude-sonnet-4.5" ||
model.id === "x-ai/grok-4" ||
model.id === "google/gemini-2.5-flash" ||
model.id === "google/gemini-2.5-pro" ||
// model.id === "google/gemini-2.5-flash" ||
// model.id === "google/gemini-2.5-pro" ||
model.id === "deepseek/deepseek-chat-v3.1" ||
model.id === "qwen/qwen3-235b-a22b-2507"
)