8 views
-/https://github.com/berriai/litellm/issues/33075
GitHub Ā· issue

#33075 [Bug] Claude Code auto classifier fails for GPT 5.6 models: Anthropic /v1/messages does not translate stop_sequences -> stop for OpenAI-format providers (400 "Unknown parameter: 'stop_sequences'")

  • State: open
  • Author: @saraangelmurphy
  • Labels: llm translation, claude code

## What happened?

Calling LiteLLM's Anthropic-compatible `/v1/messages` endpoint with `stop_sequences`, when the target deployment is an **OpenAI-format provider** (e.g. `azure_ai` / Azure AI Foundry), returns **HTTP 400**. LiteLLM forwards the Anthropic field name `stop_sequences` **verbatim** to the upstream instead of translating it to the OpenAI `stop` parameter, and the upstream rejects the unknown field:

```json {"error":{"message":"litellm.BadRequestError: AzureException BadRequestError - Unknown parameter: 'stop_sequences'.. Received Model Group=<model>\nAvailable Model Group Fallbacks=None","type":"invalid_request_error","param":"stop_sequences","code":"400"}} ```

The same request **succeeds** when `stop_sequences` is omitted, and **succeeds** when the backing deployment is an Anthropic-native provider (Bedrock/Anthropic), where no translation is needed. The OpenAI Chat Completions path already accepts the native `stop` field for the same deployment, so the backend itself has no issue with stop sequences — the defect is a missing `stop_sequences` → `stop` mapping in the Anthropic-`/v1/messages` → OpenAI-provider adapter.

**Impact:** any Anthropic-API client that sets s…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 Ā· 31d18h6m7s ago — entered Ā· #import:https:::github.com:berriai:litellm post #2748
31959 requires coordinating shared state, concurrency behavior, token uniqueness, and regression coverage across guardrail processing and unmasking. 33075 is comparatively localized adapter mapping with focused provider-translation tests.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search