ai icon indicating copy to clipboard operation
ai copied to clipboard

@ai-sdk/togetherai v3 specification support for AI SDK v6

Open hillaryke opened this issue 10 months ago • 2 comments

Description

When using @ai-sdk/[email protected] with AI SDK v6 ([email protected]), we get the following error:

Unsupported model version v3 for provider "togetherai.chat" and model "meta-llama/Llama-3.3-70B-Instruct-Turbo". AI SDK 5 only supports models that implement specification version "v2".

Environment

  • ai: 6.0.33
  • @ai-sdk/togetherai: 2.0.8 (latest available)
  • Node.js: v22

Expected Behavior

@ai-sdk/togetherai should work with AI SDK v6 like other provider packages that have been updated to v3 specification:

  • @ai-sdk/openai: 3.x ✓
  • @ai-sdk/anthropic: 3.x ✓
  • @ai-sdk/google: 3.x ✓

Current Behavior

The latest @ai-sdk/togetherai (2.0.8) still implements v2 specification, which is incompatible with AI SDK v6.

According to #10689, AI SDK v6 has backwards compatibility transforms for v2 models via asLanguageModelV3, but this doesn't seem to be working correctly for the Together AI provider.

Request

Please release @ai-sdk/[email protected] with v3 specification support for AI SDK v6 compatibility.

Workaround

Currently using OpenRouter as an alternative to access Together AI models.

hillaryke avatar Jan 14 '26 04:01 hillaryke

Identify issue type

{
  "evidence": [
    "Using `@ai-sdk/[email protected]` with `[email protected]` throws: `Unsupported model version v3 for provider \"togetherai.chat\"... AI SDK 5 only supports models that implement specification version \"v2\"`.",
    "The reporter states the latest Together AI provider still implements v2 specification and is incompatible with AI SDK v6.",
    "They note expected compatibility via AI SDK v6 backwards compatibility transforms does not seem to work for this provider."
  ],
  "rationale": "The issue reports a concrete runtime incompatibility/error when using the current Together AI provider package with AI SDK v6, which the reporter expects to work. Although it asks for a v3 provider release, the core report is broken current behavior.",
  "type": "bug",
  "confidence": "medium"
}

lgrammel avatar Jul 02 '26 08:07 lgrammel

Closing as stale: @ai-sdk/[email protected] already implements the v3 provider/model specification and is compatible with [email protected].

I could only reproduce the reported error pairing Together AI 2.0.8 with AI SDK 5, which rejects v3 models with this exact message. With the reported [email protected] + Together AI 2.0.8 pair, model resolution succeeds.

This therefore looks like an accidental duplicate or older ai@5 installation being resolved at runtime. Please check your dependency tree with:

pnpm why ai
pnpm list ai @ai-sdk/togetherai

and update all AI SDK packages to their latest version.

n1ckoates avatar Sep 11 '26 21:09 n1ckoates