Claude Platform Docs
  • メッセージ
  • マネージドエージェント
  • 管理

Search...
⌘K

Log in
バージョン
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Claude Platform Docs

Solutions

  • AI agents
  • Code modernization
  • Coding
  • Customer support
  • Education
  • Financial services
  • Government
  • Life sciences

Partners

  • Claude on AWS
  • Claude on Google Cloud

Learn

  • Blog
  • Courses
  • Use cases
  • Connectors
  • Customer stories
  • Engineering at Anthropic
  • Events
  • Powered by Claude
  • Service partners
  • Startups program

Company

  • Anthropic
  • Careers
  • Economic Futures
  • Research
  • News
  • Responsible Scaling Policy
  • Security and compliance
  • Transparency

Learn

  • Blog
  • Courses
  • Use cases
  • Connectors
  • Customer stories
  • Engineering at Anthropic
  • Events
  • Powered by Claude
  • Service partners
  • Startups program

Help and security

  • Availability
  • Status
  • Support
  • Discord

Terms and policies

  • Privacy policy
  • Responsible disclosure policy
  • Terms of service: Commercial
  • Terms of service: Consumer
  • Usage policy
APIリファレンス/サポートと設定

バージョン

APIリクエストを行う際は、anthropic-versionリクエストヘッダーを送信する必要があります。例:anthropic-version: 2023-06-01。クライアントSDKを使用している場合、これは自動的に処理されます。

Messages APIの特定のバージョンにおいて、Anthropicは以下を維持します。

  • 既存の入力パラメータ
  • 既存の出力パラメータ

ただし、Anthropicは以下を行う場合があります。

  • オプションの入力を追加する
  • 出力に値を追加する
  • 特定のエラータイプの条件を変更する
  • enum形式の出力値に新しいバリアントを追加する(例:ストリーミングイベントタイプ)

一般的に、このリファレンスに記載されているとおりにAPIを使用している場合、Anthropicがお客様の利用を妨げることはありません。

バージョン履歴

Anthropicは、可能な限り最新のAPIバージョンを使用することを推奨しています。以前のバージョンは非推奨とみなされ、新規ユーザーは利用できない場合があります。

  • 2023-06-01
    • ストリーミングの「server-sent events」(サーバー送信イベント)、すなわちSSEの新しい形式:
      • 補完が増分形式になりました。例えば、" Hello"、" Hello my"、" Hello my name"、" Hello my name is"、" Hello my name is Claude."ではなく、" Hello"、" my"、" name"、" is"、" Claude." となります。
      • すべてのイベントは、データのみのイベントではなく、名前付きイベントになりました。
      • 不要なdata: [DONE]イベントを削除しました。
    • レスポンスからレガシーのexceptionおよびtruncated値を削除しました。
  • 2023-01-01:初回リリース。

Was this page helpful?

  • バージョン履歴