Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new "ask" mode to the AI panel, enabling users to ask questions about their notes with context-aware responses. The changes introduce an interactive chat interface where users can submit questions and receive answers based on their note content.
Key changes:
- Added new 'ask' mode as an AI interaction option
- Implemented chat-style interface for question-and-answer interactions
- Added support for providing note context to the language model
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/types/ai.ts | Added 'ask' to AiMode type and new expectedOutputs configuration option |
| src/composables/useBuiltInAi.ts | Implemented promptNoteContext function and configured expected output formats |
| src/components/TheAiPanel.vue | Added ask mode UI with chat interface and integrated note context handling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| temperature?: number | ||
| maxTemperature?: number | ||
| initialPrompts: Prompt[] | ||
| expectedOutputs?: Array<{ type: string, langueages: string[] }> |
There was a problem hiding this comment.
Corrected spelling of 'langueages' to 'languages'.
| expectedOutputs?: Array<{ type: string, langueages: string[] }> | |
| expectedOutputs?: Array<{ type: string, languages: string[] }> |
| } | ||
| ], | ||
| expectedOutputs: [{ | ||
| type: 'text', langueages: ['en', 'ja'] |
There was a problem hiding this comment.
Corrected spelling of 'langueages' to 'languages'.
| type: 'text', langueages: ['en', 'ja'] | |
| type: 'text', languages: ['en', 'ja'] |
| // @ts-ignore | ||
| await promptNoteContext(props.editor?.getText() || '') | ||
| // @ts-ignore | ||
| const content = props.editor?.getText() || '' |
There was a problem hiding this comment.
The variable 'content' is declared but never used. This should be removed to avoid confusion.
| const content = props.editor?.getText() || '' |
No description provided.