DeutschLernen/GermanApp/Application/Services
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
..
AdminService.cs feat(backend): Implement mandatory authentication and admin module 2026-06-14 12:42:15 +02:00
AiFallbackService.cs feat(backend/application): implement Phase 5 AI Service Integration 2026-06-13 12:44:10 +02:00
AudioGenerationService.cs feat(backend/application): implement Phase 5 AI Service Integration 2026-06-13 12:44:10 +02:00
LessonService.cs feat(backend/validation): add FluentValidation for DTOs and update controllers 2026-06-09 17:35:14 +02:00
LessonUnlockService.cs feat(backend/application): Complete Lesson Management feature implementation 2026-06-13 09:34:42 +02:00
LevelCompletionCalculator.cs feat(backend/application): Complete Lesson Management feature implementation 2026-06-13 09:34:42 +02:00
LevelService.cs feat(backend/validation): add FluentValidation for DTOs and update controllers 2026-06-09 17:35:14 +02:00
MistralService.cs fix(backend): Fix Mistral story generation with proper chat completion format 2026-06-18 15:21:04 +02:00
ProgressService.cs feat(backend/validation): add FluentValidation for DTOs and update controllers 2026-06-09 17:35:14 +02:00
QuizQuestionService.cs feat(backend/application): Complete Lesson Management feature implementation 2026-06-13 09:34:42 +02:00
QuizService.cs feat(backend): Complete Quiz System implementation 2026-06-13 07:41:46 +02:00
SpeechExerciseService.cs feat(backend/application): implement Phase 5 AI Service Integration 2026-06-13 12:44:10 +02:00
StoryGenerationService.cs fix(backend): Fix Mistral story generation with proper chat completion format 2026-06-18 15:21:04 +02:00
StoryService.cs feat(backend/story-integration): Phase 2 - Backend Services 2026-06-13 13:37:16 +02:00
StoryUnlockService.cs feat(backend/story-integration): Phase 2 - Backend Services 2026-06-13 13:37:16 +02:00
UserReportService.cs feat(backend): Implement mandatory authentication and admin module 2026-06-14 12:42:15 +02:00
WritingFeedbackService.cs feat(backend/application): implement Phase 5 AI Service Integration 2026-06-13 12:44:10 +02:00