feat: AI Chat panel with multi-provider support and tool calling#2195
Merged
GermanBluefox merged 2 commits intoioBroker:masterfrom Apr 11, 2026
Merged
feat: AI Chat panel with multi-provider support and tool calling#2195GermanBluefox merged 2 commits intoioBroker:masterfrom
GermanBluefox merged 2 commits intoioBroker:masterfrom
Conversation
…-provider support Adds a new AI Chat panel to the script editor with support for OpenAI, Anthropic, Gemini, DeepSeek and custom API providers. Features include tool calling for datapoint/script analysis, inline completions, smart-apply with undo/redo, and Blockly code generation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
New: AI Chat (
src-editor/src/AiChat/)AiChatPanel.tsx— Main chat panel UI with provider/model selectorAiChatInput.tsx— Chat input with @-mention autocomplete for scripts and devicesAiChatMessage.tsx— Message rendering with syntax-highlighted code blocksAiChatService.ts— API config loading, model discovery, chat completion viasendToAiToolExecutor.ts— Tool call execution (search datapoints, read states, analyze scripts)AiScriptAnalyzer.ts— Cross-script analysis and datapoint usage detectionAiDatapointProvider.ts— Monaco autocomplete for ioBroker datapoint IDsAiInlineProvider.ts— AI inline completions for Monaco (with config caching)AiDiffView.tsx— Diff view for AI-suggested code changesuseAiChat.ts— React hook managing chat state, message history, and tool loopModified
src-editor/src/Editor.tsx— Integrates chat panel via split view, adds undo/redo buttonssrc-editor/src/Components/ScriptEditorVanillaMonaco.tsx— Registers inline + datapoint providerssrc/main.ts— BackendchatCompletionandtestApiConnectionmessage handlers with multi-provider HTTP routingRemoved
src-editor/src/OpenAi/OpenAiDialog.tsx— Old code generator dialog (replaced by AI Chat)src-editor/src/OpenAi/OpenAiPrompt.tsx— Old prompt builder (replaced by AI Chat)Other
vitestfor unit testing (src-editor/vitest.config.ts)AiChatServiceandAiScriptAnalyzerstyled-components,jsdom,vitestadded as dependencies insrc-editor/package.jsonTest plan
npm run buildpassesnpm run testpasses (41 integration tests)npm run lintpasses🤖 Generated with Claude Code