refactor(ai): migrate mistral provider to conversations sdk

This commit is contained in:
Abdeslam Yassine Agmar 2026-03-03 11:33:17 +00:00
parent 9a4fe52654
commit eb9f1183ad
No known key found for this signature in database
GPG key ID: 146F5C7179A49F57
17 changed files with 723 additions and 171 deletions

View file

@ -413,7 +413,6 @@ describe("Context overflow error handling", () => {
// =============================================================================
// Mistral
// Expected pattern: TBD - need to test actual error message
// =============================================================================
describe.skipIf(!process.env.MISTRAL_API_KEY)("Mistral", () => {
@ -423,6 +422,7 @@ describe("Context overflow error handling", () => {
logResult(result);
expect(result.stopReason).toBe("error");
expect(result.errorMessage).toMatch(/too large for model with \d+ maximum context length/i);
expect(isContextOverflow(result.response, model.contextWindow)).toBe(true);
}, 120000);
});