Commit graph

2 commits

Author SHA1 Message Date
Lasse Rune Hansen
aa3db295ce fix(backend): Fix Mistral story generation with proper chat completion format
- Update MistralChatRequest to remove unused properties (User, Stop, FrequencyPenalty, PresencePenalty) causing 422 errors
- Add explicit JsonPropertyName attributes to ensure correct JSON serialization
- Update MistralService to send minimal requests matching Mistral API expectations
- Pass SegmentCount and CustomPrompt through StoryGenerationService to build proper prompts
- Add request logging in MistralConnector to debug API calls
- Update default model to mistral-small-latest
- Enhance error handling to log raw JSON responses

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-18 15:21:04 +02:00
Lasse Rune Hansen
989ffb032c docs: add .env.example with Mistral AI configuration placeholders
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Added .env.example file with all AI service configuration placeholders.
Users should copy this to .env and fill in their actual API keys.
The .env file is already in .gitignore and will not be committed.

This allows users to configure Mistral, Vosk, and Coqui services without
committing sensitive API keys to git.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-17 17:58:37 +02:00