co-mono/packages/ai/src/utils
Mario Zechner 99b4b1aca0 Add Mistral as AI provider
- Add Mistral to KnownProvider type and model generation
- Implement Mistral-specific compat handling in openai-completions:
  - requiresToolResultName: tool results need name field
  - requiresAssistantAfterToolResult: synthetic assistant message between tool/user
  - requiresThinkingAsText: thinking blocks as <thinking> text
  - requiresMistralToolIds: tool IDs must be exactly 9 alphanumeric chars
- Add MISTRAL_API_KEY environment variable support
- Add Mistral tests across all test files
- Update documentation (README, CHANGELOG) for both ai and coding-agent packages
- Remove client IDs from gemini.md, reference upstream source instead

Closes #165
2025-12-10 20:36:19 +01:00
..
event-stream.ts refactor(ai): improve error handling and stop reason types 2025-09-18 19:57:13 +02:00
json-parse.ts refactor(ai): improve error handling and stop reason types 2025-09-18 19:57:13 +02:00
overflow.ts Add Mistral as AI provider 2025-12-10 20:36:19 +01:00
sanitize-unicode.ts Add Unicode surrogate sanitization for all providers 2025-10-13 14:26:54 +02:00
typebox-helpers.ts refactor(ai): improve error handling and stop reason types 2025-09-18 19:57:13 +02:00
validation.ts Remove provider-level tool validation, add validateToolCall helper 2025-12-08 18:04:33 +01:00