Skip to content
Source
Sign inSign up
TanStack/schemas

Price Mistral aliases from the listing name when the group disagrees #786 (GitHub #785)

Mergedtombeckenhammerged 1 commit intomain from785-mistral-medium-3-5-ids-log-pricing-lost-parser-miss-althoughmerged by tombeckenham View on GitHub

Showing 5 changed files with 235 additions and 0 deletions (loading 4).

x
0 of 5 viewed, 5 left
235 additions and 0 deletionssrc/server/providers/adapters/mistral.test.tsModified
View file
@@ -1,5 +1,7 @@
import { readFileSync } from 'node:fs'
​
+import { price } from '@modelschemas/rate-card'
+import type { RateCard } from '@modelschemas/rate-card'
import { describe, expect, it } from 'vitest'
​
import {
@@ -249,6 +251,239 @@
​
+describe('mistral medium 3.5 alias prices (#785)', () => {
+ it('gives listing aliases the named id’s catalog card when another alias disagrees', async () => {
+ const record = (overrides: Record<string, unknown>) => ({
+ slug: 'mistral-medium-3-5-26-04',
+ status: 'deprecated',
+ modelIds: ['mistral-medium-3-5', 'mistral-medium-latest'],
+ shortDescription: '',
+ deprecatedAt: '2026-10-31T00:00:00.000Z',
+ retiredAt: null,
+ replacedBy: null,
+ inputs: ['text'],
+ outputs: ['text'],
+ features: [],
+ maxOutputTokens: null,
+ releasedAt: '2026-04-28T00:00:00.000Z',
+ pricing: [
+ {
+ direction: 'input',