Skip to content

DX-596-together-chat-completions: sync with mintlify-docs#1159#39

Merged
zainhas merged 1 commit into
mainfrom
docs-sync/together-chat-completions/mintlify-docs-pr-1159
Jul 10, 2026
Merged

DX-596-together-chat-completions: sync with mintlify-docs#1159#39
zainhas merged 1 commit into
mainfrom
docs-sync/together-chat-completions/mintlify-docs-pr-1159

Conversation

@zainhas

@zainhas zainhas commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Syncs the together-chat-completions skill with mintlify-docs #1159Clarify reasoning field + usage-object shape, fix DeepSeek V4 Pro pricing.

Triggering docs changes

  • docs/inference/chat/reasoning.mdx
  • docs/inference/openai-compatibility.mdx
  • docs/deepseek-v4-quickstart.mdx (pricing-only; not tracked in skill's references/models.md, no sync needed)

Skill changes

  • references/reasoning-models.md
    • Under Separate reasoning field: note that reasoning is symmetric between input and output. When you pass a prior assistant turn back to the API (preserved thinking, multi-turn tool calling), use the reasoning key on the assistant message. reasoning_content is still accepted on input for backward compatibility.
    • New Tracking Reasoning and Cached Token Usage section: documents that reasoning_tokens and cached_tokens live in different places depending on the model — reasoning models nest them under usage.completion_tokens_details.reasoning_tokens and usage.prompt_tokens_details.cached_tokens; some non-reasoning models return cached_tokens flat at the top of usage. Includes a Python + TypeScript defensive-read pattern so clients don't silently see 0.
  • SKILL.md
    • Two new High-Signal Rules capturing the two footguns above (preserved-thinking key symmetry, defensive read of usage token counts).

The DeepSeek V4 Pro pricing change ($1.74 / $3.48 / $0.20 per 1M in/out/cached tokens) is not carried over because references/models.md has no pricing columns and no other skill file references those numbers.


Generated by the Sync Skills Cursor Automation. Please review before merging.

Sync clarifications from togethercomputer/mintlify-docs#1159:

- Note that the `reasoning` field is symmetric on input and output for
  preserved thinking / multi-turn tool calling; `reasoning_content` is
  still accepted on input for backward compatibility.
- Document that reasoning token and cached-token counts on `usage`
  vary in location by model (nested `*_details` on reasoning models,
  flat `cached_tokens` on some non-reasoning models) and add a
  defensive-read pattern so clients don't silently see 0.
@zainhas zainhas self-assigned this Jul 8, 2026
@zainhas zainhas requested a review from muhsinking July 8, 2026 21:52
@zainhas zainhas merged commit 421cab3 into main Jul 10, 2026
2 checks passed
@zainhas zainhas deleted the docs-sync/together-chat-completions/mintlify-docs-pr-1159 branch July 10, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants