Feature/ai assistant - #172
Merged
Merged
Conversation
… conversation flow
- Created src/server/lib/gemini.ts with production-grade implementation - Uses REST API directly instead of SDK for better control and retry handling - Implements exponential backoff retry logic with timeout protection - Removed JSON schema requirement, using plain text responses - Updated API route to use generateChatResponse() - Simplified AIResponse type (removed 'level' field) - Build passes with no errors
- Mark status as 'in-progress' - Update response shape to match actual API (no 'level' field) - Document Google Gemini 2.0 Flash provider - Add server-side gemini.ts file to component plan - Document retry logic with exponential backoff - Mark all acceptance criteria as completed [x] - Update file status table with checkmarks
…Client apiClient has Strapi's base URL baked in, causing requests to go to 127.0.0.1:1337/api/ai/chat instead of the Next.js internal route
…field Retry logic makes no sense for quota (429) errors - fail fast instead. Also removed the confidence field which was never used in the UI.
Replace hardcoded theme colors with useColors hook values and update avatars to use custom icons (robot for AI, skateboard for user) instead of name-based initials.
- Change assistant name from "Assistente IA" to "Truta IA" - Update initial chat suggestions and placeholder text with skateboarding slang - Improve greeting message formatting - Fix variable name: `bord` → `border` - Refactor Box component to single-line JSX - Add spacing to chat messages area
…efer level to future
Replace generic color tokens with semantic ones for chat messages to improve maintainability and consistency across the UI theme.
Owner
Author
|
This pull request has been deployed to Vercel.
|
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.
No description provided.