– UNSUPPORTED

tanstack-ai 1.4.0

usage.reasoning-tokens · anthropic

Back to results · Scenario

Requirements

IdLevelStatusEvidence

Notes

  • TanStack AI's chat() always requests a streamed response (stream: false collects the stream), so it never sends the non-streamed request this fixture replays. (https://tanstack.com/ai/latest/docs/api/ai#chat-options)

What the provider sent

Finish
stop
Raw finish
end_turn
Text
11 pots contain three seedlings: 11 times 3 plus 7 times 2 equals 47.
Tool calls
[]
Usage
{
  "alternatives": {},
  "cached_input": null,
  "input": 52,
  "output": 348,
  "raw": {
    "input_tokens": 52,
    "output_tokens": 348,
    "output_tokens_details": {
      "thinking_tokens": 312
    }
  },
  "reasoning": 312,
  "total": 400
}
Stream completed
null
Error
null
Wire excerpt
status: 200
content-type: application/json
body (json):
{
  "id": "msg_reasoning_example",
  "type": "message",
  "role": "assistant",
  "content": [
    {
      "type": "thinking",
      "thinking": "",
      "signature": "documented-placeholder"
    },
    {
      "type": "text",
      "text": "11 pots contain three seedlings: 11 times 3 plus 7 times 2 equals 47."
    }
  ],
  "model": "claude-sonnet-5-5",
  "stop_reason": "end_turn",
  "stop_sequence": null,
  "stop_details": null,
  "usage": {
    "input_tokens": 52,
    "output_tokens": 348,
    "output_tokens_details": {
      "thinking_tokens": 312
    }
  }
}

What the library reported

Outcome
unsupported
Finish
{
  "raw": null,
  "source": null,
  "surface": "absent",
  "value": null
}
Text
Value
null
Surface
absent
Tool calls
[]
Usage
{
  "cached_input": null,
  "input": null,
  "output": null,
  "reasoning": null,
  "surface": {
    "cached_input": "absent",
    "input": "absent",
    "output": "absent",
    "reasoning": "absent",
    "total": "absent"
  },
  "total": null
}
Stream
{
  "chunks_seen": null,
  "completed": null,
  "used": false
}
Error
null
Unsupported reason
TanStack AI's chat() always requests a streamed response (stream: false collects the stream), so it never sends the non-streamed request this fixture replays. https://tanstack.com/ai/latest/docs/api/ai#chat-options
Full observation JSON
{
  "elapsed_ms": 0.9234289999999419,
  "error": null,
  "finish": {
    "raw": null,
    "source": null,
    "surface": "absent",
    "value": null
  },
  "format": "wiretruth.observation/v1",
  "library": {
    "api": "chat",
    "language": "javascript",
    "name": "tanstack-ai",
    "version": "1.4.0"
  },
  "notes": [],
  "outcome": "unsupported",
  "stream": {
    "chunks_seen": null,
    "completed": null,
    "used": false
  },
  "structured": {
    "attempted": false,
    "returned_as_success": false,
    "value": null
  },
  "text": {
    "surface": "absent",
    "value": null
  },
  "tool_calls": [],
  "unsupported_reason": "TanStack AI's chat() always requests a streamed response (stream: false collects the stream), so it never sends the non-streamed request this fixture replays. https://tanstack.com/ai/latest/docs/api/ai#chat-options",
  "usage": {
    "cached_input": null,
    "input": null,
    "output": null,
    "reasoning": null,
    "surface": {
      "cached_input": "absent",
      "input": "absent",
      "output": "absent",
      "reasoning": "absent",
      "total": "absent"
    },
    "total": null
  }
}

Fixture

documented anthropic/usage.reasoning-tokens

ProvenanceValue
Sourcehttps://platform.claude.com/docs/en/build-with-claude/thinking-steering-and-cost#pricing
NotesDocumented shapes, not a recording. The pricing example supplies output_tokens 348 and output_tokens_details.thinking_tokens 312; output_tokens includes thinking. Message envelope and end_turn follow the Messages API reference (https://platform.claude.com/docs/en/api/messages/create). Model, id, input_tokens and greenhouse answer are filled in; the combined response is assumed, not documented verbatim. The empty thinking block follows the omitted-display shape (https://platform.claude.com/docs/en/build-with-claude/thinking#control-how-thinking-is-shown); its signature is a placeholder. Request built with providers.anthropic.build_request: adaptive thinking, output_config.effort medium and max_tokens 800. Adaptive thinking has no manual budget_tokens minimum; thinking and text share the output cap. No request was sent.

Reproduce

wiretruth serve anthropic/usage.reasoning-tokens

Plain-library snippet from the shim manifest.

createAnthropicChat(model, apiKey, { baseURL: WIRETRUTH_BASE_URL_ANTHROPIC }); its fetch client appends /v1/messages?beta=true.

Upstream

No matching upstream report.

History

VersionGrade
1.4.0– UNSUPPORTED
1.0.0– UNSUPPORTED
0.71.0not covered