anthropic-sdk-python icon indicating copy to clipboard operation
anthropic-sdk-python copied to clipboard

Results 111 anthropic-sdk-python issues
Sort by recently updated
recently updated
newest added

Recently, i have started using AnthropicVertex instead of direct anthropic. When I try to generate some data through AnthropicVertex client, it is taking around 2s to start streaming. However, in...

### What is it The `AnthropicVertex` and `AsyncAnthropicVertex` clients do not seem to expose `with_options(...)` like the other clients. Similar previous issue for Bedrock: https://github.com/anthropics/anthropic-sdk-python/issues/410 ### Example ```shell > client.with_options(max_retries=num_retries).messages.create(...)...

Automated Release PR --- ## 0.30.1 (2024-06-29) Full Changelog: [v0.30.0...v0.30.1](https://github.com/anthropics/anthropic-sdk-python/compare/v0.30.0...v0.30.1) ### Bug Fixes * **build:** include more files in sdist builds ([#559](https://github.com/anthropics/anthropic-sdk-python/issues/559)) ([9170d08](https://github.com/anthropics/anthropic-sdk-python/commit/9170d08e056ecb33f1441f50b8407a1c60c45d94)) --- This Pull Request has been generated...

autorelease: pending

We have detected a conflict between code generated by Stainless' generated code and code that you have merged to main. Please resolve the conflict and merge so that Stainless can...

Hello, It would be incredibly useful to have the ability to make API requests within the context of existing projects. Given that projects contain pre-prepared data, this feature would greatly...

The source distributions published to pypi presently cannot be built; attempts fail with: ```none Processing /private/tmp/nix-build-python3.12-anthropic-0.25.7.drv-0/anthropic-0.25.7 Running command Preparing metadata (pyproject.toml) Traceback (most recent call last): File "/nix/store/brnl7k3jxym5gyla9yh05xz5c4vhn1rz-python3.12-pip-23.2.1/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353,...

Right now, pydantic can't instantiate a TypeAdapter for `anthropic.types.MessageParam` on account of the support for file-like objects (which, by nature, can't be serialized to JSON) in the data types used...

enhancement
sdk

This is a deeply odd error, insofar as it's something that happens 100% of the time only when my code is invoking Anthropic (via client libraries 0.28.0) from our CI...

Ability to be able to force only one single tool output (not many) Similar to the `parallel_tool_calls` param in the OpenAI sdk.

Allow a version of tool choice that is none (this allows you to pass tools in but ensure that no tools are called. This is similar functionality to the openai...