anthropics / anthropics/anthropic-sdk-python

Bedrock: support low-latency configuration

未关闭
#971 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bedrock
主要语言
Python
星标
3.9k
派生
853
平均合并
1 天 11 小时
30 天内合并 PR
10

描述

Currently, `[Async]AnthropicBedrock` doesn't provide a way to enable low-latency mode.
It also appears that this configuration isn't even accessible via the Bedrock Anthropic HTTP API.

So the only option for the Antropic clients to use this low-latency model is to use the Converse API provided by AWS Becrock: https://docs.aws.amazon.com/bedrock/latest/userguide/latency-optimized-inference.html

This is very inconvenient, since the Converse API unifies APIs for multiple models and, therefore, it lacks support for exclusive features of particular models _(e.g. `tool_choice=none` is missing from the Converse API)_.

Exposing low-latency configuration in `[Async]AnthropicBedrock` would be great.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。