Skip to content
Source
Sign inSign up
TanStack/schemas

Read Mistral release dates from each model page's markdown twin #713

Mergedtombeckenhammerged 3 commits intomain fromfix/708-mistral-released-atmerged by tombeckenham View on GitHub

Showing 8 changed files with 127 additions and 7 deletions (loading 5).

x
0 of 8 viewed, 8 left
106 additions and 6 deletionssrc/server/providers/adapters/mistral.test.tsModified
View file
@@ -9,13 +9,21 @@
} from '../fixtures/mistral-model-page.ts'
import { provider } from './mistral.ts'
import { MISTRAL_DEPRECATIONS_URL } from '../deprecations.ts'
-import { MISTRAL_WEBSEARCH_URL } from '../mistral-pricing.ts'
+import {
+ MISTRAL_WEBSEARCH_URL,
+ parseMistralMarkdownReleaseDate,
+} from '../mistral-pricing.ts'
import { MISTRAL_REASONING_URL } from '../reasoning-config.ts'
​
const MODELS_PAGE = readFileSync(
new URL('../fixtures/mistral-models.md.txt', import.meta.url),
'utf8',
+// https://docs.mistral.ai/models/mistral-small-4-0-26-03.md, 2026-11-21.
+const SMALL_4_MARKDOWN = readFileSync(
+ new URL('../fixtures/mistral-small-4-0-26-03.md.txt', import.meta.url),
+ 'utf8',
+)
​
describe('mistral classify', () => {
it('maps generation paths to the claimed activities', () => {
@@ -110,11 +118,8 @@
}) => rest,