Packages

@tanstack/ai-bedrock

1.0.0 · 22 Oct 2026MIT38.3k / weekRepositorynpmAtom feed

Latest releases

All 38 releases
  1. 1.x · latest line
  2. 1.0.0

    22 Oct 2026
  3. 0.6.x · maintenance
  4. 0.6.2

    21 Oct 2026
  5. 0.6.1

    19 Oct 2026
    • Keep the provider's raw tool argument string for replay.

  6. 0.6.0

    13 Oct 2026
    • Text adapters now set one stable code on RUN_ERROR when the input does not fit in the model's context window: code: 'context_overflow'. @tanstack/ai exports it as CONTEXT_OVERFLOW_CODE. The provider's own text stays in message.

      if (chunk.type === 'RUN_ERROR' && chunk.code === CONTEXT_OVERFLOW_CODE) {
        // shorten the messages, then call chat() again
      }

      These adapters set it: OpenAI and the other OpenAI-compatible adapters (from code: 'context_length_exceeded'), Anthropic, Gemini, Bedrock (Converse, Chat Completions, and Responses), OpenRouter, Grok, Cloudflare Workers AI, and BytePlus.

      Changes to code that reads the old values:

    • Prompt caching is now on by default. Each chat() call asks the provider to cache the stable start of the request (system prompt, tools, and earlier messages), so repeated requests cost less and answer sooner.

    • Set reasoning with chat({ reasoning }) on the three Bedrock APIs.

      Breaking: reasoning_effort (Chat Completions) and reasoning (Responses) are no longer in modelOptions.

      // Before
      chat({
        adapter: bedrockText('openai.gpt-oss-120b-1:0', { api: 'chat' }),
        messages,
        modelOptions: { reasoning_effort: 'high' },
      })
      
      // After
      chat({
        adapter: bedrockText('openai.gpt-oss-120b-1:0', { api: 'chat' }),
        messages,
        reasoning: 'high',
      })

      Structured output sends no thinking, because Claude cannot think while a tool is forced.

  7. 0.5.x · maintenance
  8. 0.5.1

    9 Oct 2026

Dependency tracking · free for 3 projects

Know when your own dependencies move

@tanstack/ai-bedrock shipped a new major in the last 12 months, among 38 releases. Inlinr shows which of your projects are behind, and what the upgrade breaks.

  • Advisories reach you

    An email when a critical or high advisory affects a project, before the next install.

  • Upgrades checked first

    Peer ranges, Node, ESM-only and types changes read before you bump.

  • Only what matters

    Majors and breaking notes stay; patches and sibling bumps fold into one line.

How dependency tracking works

Registry facts last checked 22 Oct 2026. Releases and advisories last read 23 Oct 2026.