FG
💻 Software🤖 AI & LLMsAnthropic

Model defaults to version 2.1 even when specified to claude-2

Freshover 2 years ago
Mar 14, 20260 views
Confidence Score87%
87%

Problem

Hello and thank you for providing access to the SDK and Claude APIs. Two notes: 1. Pydantic Versioning: The Anthropics SDK currently has a hard dependency on Pydantic version 1.0, which causes other modules, of which are dependent on higher versions, to break. 2. Model Versioning in Completion API: When using the Python SDK's completion API, it appears that the specified model version is not being honored. Despite selecting "claude-2" as the model, the API defaults to version 2.1. Below are the relevant version details and execution code: Version Information: [code block] Execution Code: [code block] Response: [code block]

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: Model defaults to version 2.1 even when specified to claude-2

Low Risk

Pydantic 2 is suppoted now - what have you the impression it wasn't? Claude-2 is now an alias for Claude-2.1 On Sat, Nov 25 2023 at 6:12 PM, Kasra Rasaee @.**> wrote: > Hello and thank you for providing access to the SDK and Claude APIs. > > Two notes: > > 1. Pydantic Versioning: > The Anthropics SDK currently has a hard dependency on Pydantic version > 1.0, which causes other modules, of which

84

Trust Score

1 verification

100% success
  1. 1

    Pydantic 2 is suppoted now - what have you the impression it wasn't?

    Pydantic 2 is suppoted now - what have you the impression it wasn't?

  2. 2

    Claude-2 is now an alias for Claude-2.1

    Claude-2 is now an alias for Claude-2.1

  3. 3

    On Sat, Nov 25 2023 at 6:12 PM, Kasra Rasaee @.**>

    wrote:

  4. 4

    > Hello and thank you for providing access to the SDK and Claude APIs.

    > > Two notes: > > 1. Pydantic Versioning: > The Anthropics SDK currently has a hard dependency on Pydantic version > 1.0, which causes other modules, of which are dependent on higher versions, > to break. > > 2. Model Versioning in Completion API: > When using the Python SDK's completion API, it appears that the specified > model version is not being honored. Despite selecting "claude-2" as the > model, the API defaults to version 2.1. > > Below are the relevant version details and execution code: > > Version Information: > > % conda list | grep anthropic > anthropic 0.7.4 pyhd8ed1ab_0 conda-

Validation

Resolved in anthropics/anthropic-sdk-python GitHub issue #255. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

claudeanthropicllmapi