mirror of
https://github.com/nocobase/nocobase.git
synced 2026-12-06 22:23:41 +08:00
* feat(plugin-ai): inject OpenCode request headers into LLM providers - Add requestContext (sessionId) to LLM providers, passed from AI employee conversations, workflow LLM nodes and test flight - Add LLMProvider.getDefaultHeaders(): returns a custom User-Agent and x-opencode-session when baseURL targets opencode.ai, otherwise empty - Merge the default headers into every provider's model client and model listing requests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(plugin-ai): pass session context to web search and AI translate requests - subAgentWebSearch passes the conversation sessionId to the LLM provider, falling back to a generated id, so OpenCode requests carry x-opencode-session - Localization AI translate task uses its task id as the session Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(plugin-ai): align DeepSeek capabilities with V4.1-Flash - Add supportsImageInput and send image attachments to Flash models (deepseek-flash, deepseek-v4-flash, deepseek-v4-flash-vision-exp, deepseek-v4.1-flash); V4-Pro silently drops images - Disable web search for Flash models: V4.1-Flash ignores the built-in web_search tool and answers from stale knowledge; keep it for V4-Pro - Register deepseek-flash as a default model Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>