Bedrock: support low-latency configuration

オープン
#971 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

  • #1514 @wilyan09007 による — マージされずにクローズ

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
aws, python
領域
api, cloud

調査の方向性

まず [Async]AnthropicBedrock のエントリーポイントを特定し、それらの Bedrock リクエストがどのように設定されているかを確認します。Anthropic Bedrock HTTP API を AWS の Converse API およびそのレイテンシー最適化推論のドキュメントと比較し、その設定がサポートされているかどうかを判断します。tool_choice=none などのモデル固有の機能を失うことなく、低レイテンシー構成を利用できるようにすれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bedrock

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.

主要言語
Python
スター
4.1k
フォーク
915
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anthropics/anthropic-sdk-python のほかの issue

anthropics/anthropic-sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。