Skip to content

Feature/ai assistant - #172

Merged
jpcmf merged 36 commits into
developfrom
feature/ai-assistant
Apr 29, 2026
Merged

Feature/ai assistant#172
jpcmf merged 36 commits into
developfrom
feature/ai-assistant

Conversation

@jpcmf

@jpcmf jpcmf commented Apr 29, 2026

Copy link
Copy Markdown
Owner

No description provided.

jpcmf added 26 commits April 28, 2026 16:02
- 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
@jpcmf jpcmf self-assigned this Apr 29, 2026
@jpcmf jpcmf added the deployed label Apr 29, 2026
@jpcmf

jpcmf commented Apr 29, 2026

Copy link
Copy Markdown
Owner Author

@jpcmf
jpcmf merged commit d08cabf into develop Apr 29, 2026
2 checks passed
@jpcmf
jpcmf deleted the feature/ai-assistant branch April 29, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant