Model defaults to version 2.1 even when specified to claude-2
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
Solution: Model defaults to version 2.1 even when specified to claude-2
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
Trust Score
1 verification
- 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
Claude-2 is now an alias for Claude-2.1
Claude-2 is now an alias for Claude-2.1
- 3
On Sat, Nov 25 2023 at 6:12 PM, Kasra Rasaee @.**>
wrote:
- 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
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep