Packages

@tanstack/ai-mistral

1.0.0 · 22 Oct 2026MIT34.8k / weekRepositorynpmAtom feed

36 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 1.x · latest line
  2. 1.0.0

    22 Oct 2026
    • breaking

      TanStack AI 1.0.0. This release removes every API that was deprecated in 0.x. Read the upgrade guide before you upgrade: tanstack.com/ai/latest/docs/migration/v1

    • removed

      Remove model ids that providers have retired. Each one now fails on the provider's API, so the types no longer accept it.

      Types and helpers that only served those models are removed:

  3. 0.7.x
  4. 0.7.2

    21 Oct 2026

    Only updates a dependency:@tanstack/ai 0.71.0

  5. 0.7.1

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

  6. 0.7.0

    13 Oct 2026
    • 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 }).

      Breaking: none. The adapter had no reasoning option before.

      chat({
        adapter: mistralText('mistral-small-latest'),
        messages,
        reasoning: 'high',
      })
    • Keep a schema property or a tool argument named __proto__. Before this fix, code that copied it with out[key] = value went to the __proto__ setter instead, so the key was lost.

  7. 0.6.x
  8. 0.6.18

    9 Oct 2026

    Only updates a dependency:@tanstack/ai 0.68.0

  9. 0.6.17

    9 Oct 2026
    • Text adapters can now give inputModalities at run time: the input kinds that the model reads, for example ['text', 'image', 'document']. undefined means that the adapter does not know.

    • Add wrapFetch to chat(), to the middleware onConfig config, and to TextOptions. A wrapper gets the next fetch and gives back a new fetch. Use it to change the URL, the headers, the request, or the response of a model call. The new FetchWrapper type names the wrapper.

      The engine chains the chat() wrapper and the middleware wrappers into one function. A middleware wrapper runs inside the chat() wrapper and applies to one model call only.

      These text adapters send their requests through the wrapper: every adapter on @tanstack/openai-base (OpenAI, the OpenAI-compatible adapters, Grok, Groq, BytePlus, LLM Gateway, Lovable, Vercel AI Gateway, Cloudflare, and the Bedrock Chat Completions and Responses APIs), Anthropic, Mistral, Ollama, and OpenRouter. The wrapper wraps the fetch of the adapter config, not the global fetch. An Anthropic or Ollama adapter with an injected client ignores wrapFetch. In Cloudflare binding mode, the wrapper runs, but the binding does not send the URL or the headers. Without wrapFetch, the requests do not change.

  10. 0.6.15

    8 Oct 2026
    • Structured output now reports a truncation error when the response stops at the output token limit. Before, you got a JSON parse error, or the partial result came back as valid data. openai-base and ai-openrouter already do this (#1426).

  11. 0.6.1 – 0.6.1411 releases that only update dependencies@tanstack/ai 0.65.0@tanstack/ai-utils 0.4.1Show each
  12. 0.6.0

    3 Sep 2026
    • Accept baseURL and defaultHeaders on every adapter's client config so one gateway config (Cloudflare AI Gateway, Vercel AI Gateway, a corporate proxy) can be spread into any adapter. The vendor-specific names (httpOptions, serverURL, host, baseUrl, headers) keep working. Bedrock's Converse adapter now applies defaultHeaders too.

  13. 0.5.x
  14. 0.5.2 – 0.5.32 releases that only update dependencies@tanstack/ai 0.52.0Show each
  15. 0.5.1

    27 Aug 2026
    • Stop requiring Zod as a peer dependency when the adapters do not import it at runtime.

  16. 0.5.0

    24 Aug 2026
    • Add headless BYOK: defineByok in @tanstack/ai-client/byok, pass byok into chat and generation hooks, and read keys on the relay with getByokKey from @tanstack/ai/byok/server. Provider ids are open slugs (x-byok-<slug>). Each adapter exports a { id, label, env? } object (openaiByok, …); id is required. env is the env var name(s) for the relay — names only; the client never reads process.env. A wrong key surfaces as the provider's own 401 through the relay, so no client-side key check is needed. OpenRouter PKCE (@tanstack/ai-openrouter/pkce) saves the minted key under openrouterByok.id.

  17. 0.4.x
  18. 0.4.1

    22 Aug 2026

    Only updates a dependency:@tanstack/ai 0.48.0

  19. 0.4.0

    21 Aug 2026
    • Add Vertex AI factories for Grok (grokVertexText, grokVertexSummarize) and Mistral (mistralVertexText) on @tanstack/ai-grok/vertex and @tanstack/ai-mistral/vertex. Vertex factories accept only the chat models in the Google partner catalog. anthropicVertexText now uses the same Vertex Claude catalog.

    • Preserve genuine nullable values while removing nulls synthesized for optional strict tool inputs and structured outputs.

  20. 0.3.x
  21. 0.3.2 – 0.3.43 releases that only update dependencies@tanstack/ai 0.47.0Show each
  22. 0.3.1

    11 Aug 2026
    • populate StructuredOutputResult.usage from non-stream structuredOutput()

      Adapters that already returned tokens/cost on streaming structured paths were dropping response.usage on the non-stream structuredOutput() method. OpenRouter now forwards tokens and cost; openai-base, Mistral, and Bedrock Converse do the same for tokens so fallbackStructuredOutputStream and middleware can observe usage.

  23. 0.3.0

    10 Aug 2026
    • Add a multimodal embed() activity. A single primitive covers one input or a batch — input accepts a string, a text part, an image part, or a fused text+image item written as a nested Array<ContentPart> ([textPart, imagePart], the same shape chat messages use), one vector per item, with the accepted item types narrowed per model at compile time. Top-level dimensions requests Matryoshka output sizes where supported. Results carry embeddings: [{ vector, index }] plus usage when the provider reports it, and embed() participates in generation middleware, debug logging, OTel (gen_ai.operation.name: embeddings), and devtools events like every other activity.

      Provider adapters: openaiEmbedding (text-embedding-3-small/large), geminiEmbedding (gemini-embedding-001), mistralEmbedding (mistral-embed, codestral-embed), ollamaEmbedding (nomic-embed-text and any local model), bedrockEmbedding (Titan Text V2, Titan Multimodal G1 with fused text+image, Cohere Embed v3 on Bedrock), and @tanstack/ai-cohere's cohereEmbedding (embed-v4.0, multimodal text+image with required inputType).

    • Support document (PDF) input for Mistral vision models via document_url. The text adapter now maps document content parts to Mistral's document_url format (hosted URLs pass through; inline bytes are wrapped in a data: URL, mirroring image handling), and document is declared as an input modality for the vision-capable models. Previously any document content part threw "Supported types: text, image".

  24. 0.2.x
  25. 0.2.4

    4 Aug 2026

    Only updates a dependency:@tanstack/ai 0.43.0

  26. 0.2.3

    20 Jul 2026

    Reading the note…

  27. 0.2.2

    16 Jul 2026

    Reading the note…

  28. 0.2.1

    6 Jul 2026

    Reading the note…

  29. 0.2.0

    30 Jun 2026

    Reading the note…

  30. 0.1.x
  31. 0.1.0

    30 Jun 2026

    Reading the note…