Skip to content
Source
Sign inSign up
TanStack/schemas

Reasoning gaps the sources state but ingest misses (BytePlus nested table, Gemini 3.7 Flash page, Groq safeguard conflict) #432

Closedtombeckenham opened this issue 1 comment
tombeckenhamcommented

Follow-up from #323. These three reasoning gaps are real: each provider states the fact, but ingest does not read it.

  1. BytePlus: parseByteplusInserts misses the nested reasoning_effort table (src/server/providers/reasoning-config.ts). The deep-thinking page https://docs.byteplus.com/en/docs/ModelArk/1449737 keeps its "Supported models" table cells in a nested, more deeply escaped delta (\\\"insert\\\":\\\"deepseek-v4-flash-260425\\\n\\\"), and the insert regex does not match that form. The parser then gives the effort list to whichever dated ids follow the "The table below…" sentence. Today those are the thinking.type bullet ids, which happen to overlap. The result is that deepseek-v4-flash-260425 stays reasoning: null, and the other bindings are correct only by accident. Fix: read the table's own cells and bind only those ids.
  2. Gemini: gemini-3.7-flash's model page is never read. https://ai.google.dev/gemini-api/docs/models/gemini-3.7-flash.md.txt states "Thinking Supported (low, medium, high) … minimal is not supported". The model is deprecated, so the models index (models.md.txt) no longer links the page, and geminiModelFeatures only fetches pages the index links. Fix: fetch models/{rawId}.md.txt for listed ids the index does not cover, and treat a 404 as "no page", not as a docs failure.
  3. Groq: openai/gpt-oss-safeguard-20b: the two Groq sources disagree. The reasoning guide (https://console.groq.com/docs/reasoning.md) says reasoning_effort "is only supported by GPT-OSS 20B and GPT-OSS 120B". The model page (https://console.groq.com/docs/model/openai/gpt-oss-safeguard-20b.md) describes low/medium/high effort. This needs a decision: report it upstream, or follow the model page.
  1. Item 3 decided: follow the model page. Live probe on 2026-10-23 against openai/gpt-oss-safeguard-20b:

    • reasoning_effort: "low" was accepted (10 and 26 reasoning tokens over two runs), and "high" was accepted (89 reasoning tokens).
    • "none" was rejected with a model-specific error: "reasoning_effort must be one of low, medium, or high".
    • "bogus" was rejected with Groq's general list, so validation does run per model.

    So the reasoning guide's "only supported by GPT-OSS 20B and GPT-OSS 120B" is out of date for this model. Store reasoning: { mode: 'effort', efforts: ['low','medium','high'] } from the model page (https://console.groq.com/docs/model/openai/gpt-oss-safeguard-20b.md, "low/medium/high reasoning effort"), with factSources.reasoning citing that page. Keep mandatory: null: no published page states that none is refused, and the probe is evidence for picking a source, not a source. The parser must take the levels from the page text and fail closed if that sentence changes. Don't hard-code them.

  2. tombeckenham closed this

Sign in to join this conversation.