Skip to content
Source
Sign inSign up
TanStack/schemas

Read Perplexity's '<name>, an open-weight reasoning model.' card #688

Mergedtombeckenhammerged 1 commit intomain from100006-perplexity-models-page-deepseek-v4-pro-card-x-an-open-weightmerged by tombeckenham View on GitHub

Showing 2 changed files with 30 additions and 2 deletions.

x
0 of 2 viewed, 2 left
27 additions and 0 deletionssrc/server/providers/adapters/perplexity.test.tsModified
View file
@@ -145,6 +145,33 @@
​
+ it('reads a card that states the reasoning model after a comma (#100006)', () => {
+ // The DeepSeek tab as served on 2026-11-18.
+ const deepseek = MODELS_DOC.replace(
+ /^> \[tab\] NVIDIA\n[^]*?(?=> \[tab\] Perplexity)/m,
+ [
+ '> [tab] DeepSeek',
+ ...quote([
+ '',
+ '> [card] DeepSeek',
+ '>',
+ '> DeepSeek V4 Pro, an open-weight reasoning model.',
+ '',
+ ...HEADER,
+ '| `perplexity/deepseek-v4-pro-0813` | 1.32 | 3.96 | 0.044 | — | — |',
+ ]),
+ '',
+ '',
+ ].join('\n'),
+ )
+ expect(deepseek).not.toBe(MODELS_DOC)
+ const page = parsePerplexityModelsPage(deepseek)
+ expect(page.flags.get('perplexity/deepseek-v4-pro-0813')).toEqual([