feat: ai assistant with chat window#507
Merged
bluestreak01 merged 108 commits intomainfrom Jan 2, 2026
Merged
Conversation
also: model updated to Sonnet 4
…lection, fix sql query generation, improve error handling
…nts, highlight generated sql, position new sql at the end,
…'t retry requests unless required, remove api key format testing
715d5c1 to
5c524ab
Compare
14e10a1 to
b9a5edf
Compare
bluestreak01
approved these changes
Jan 2, 2026
This was referenced Jan 2, 2026
Merged
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
This PR introduces a comprehensive AI Assistant feature with an integrated chat window, enabling users to interact with AI models (Anthropic Claude & OpenAI GPT) directly within the QuestDB Web Console for SQL assistance, query explanations, and error fixing.
Features
AI Chat Window
Query Assistance
Monaco Editor Integration
AI Provider Configuration
Status & Feedback
New Providers
AIConversationProvider- Manages conversation state, persistence, and operationsAIStatusProvider- Handles AI operation status and abort controlsDependencies Added
@anthropic-ai/sdk- Anthropic Claude API clientopenai- OpenAI API clientjs-tiktoken- Token counting for context managementfflate- Compression for conversation storageremark-gfm- GitHub-flavored markdown renderingvite-plugin-wasm+vite-plugin-top-level-await- WASM support for tiktokenData Persistence
QuestDB Integration
/api/v1/sql/validate)SHOW CREATE ...queriesTesting
aiAssistant.spec.js)