AI GatewayがOpenAIのResponses APIをサポート
本文の状態
日本語全文を表示中
詳細モードで約1分の本文を読めます。
同じ出来事の情報源
6媒体で確認
Vercel Blog · LY Corp Tech Blog · TechCrunch AI · Ars Technica AI · The Verge AI · TLDR AI
各社の報じ方を比較 ↓OpenAIがResponses APIをAI Gateway経由で利用可能にした。このAPIはChat Completions APIの代替として、TypeScriptとPythonでテキスト生成やストリーミング機能を提供する。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
AI GatewayがOpenAIのResponses APIをサポート
AI Gatewayを通じて、OpenAIのResponses APIが利用可能になりました。Responses APIは、Chat Completions APIの現代的代替手段です。OpenAI SDKのベースURLをAI Gatewayに向け、クリエイター/モデル名を使用してリクエストをルーティングしてください。TypeScriptとPythonの両方がサポートされています。Responses APIのすべての機能は、AI SDKとChat Completions APIを通じて既にAI Gatewayからアクセス可能でしたが、現在はResponses APIを直接使用できるようになりました。
できること
- テキスト生成とストリーミング: プロンプトを送信し、応答を取得、トークンが到着次第ストリーミング
- ツール呼び出し: モデルが呼び出せる関数を定義し、結果をフィードバック
- 構造化出力: 応答をJSONスキーマに制約
- 推論: 設定可能な努力レベルで、モデルの思考に費やす労力を制御
はじめに
OpenAI SDKをインストールし、AI Gatewayに向けます。
基本的な例: テキスト生成
プロンプトを送信し、サポートされている任意のモデルから応答を取得します。
推論を伴う構造化出力
努力レベルとJSONスキーマを組み合わせて、構造化された応答を取得します。
Responses APIについて詳しくは、ドキュメントをご覧ください。
Read more
原文を表示
OpenAI's Responses API is now available through AI Gateway. The Responses API is a modern alternative to the Chat Completions API. Point your OpenAI SDK to AI Gateway's base URL and use the creator/model names to route requests. TypeScript and Python are both supported. All of the functionality in the Responses API was already accessible through AI Gateway via the AI SDK and Chat Completions API, but you can now use the Responses API directly.
What you can do
Text generation and streaming: Send prompts, get responses, stream tokens as they arrive
Tool calling: Define functions the model can invoke, then feed results back
Structured output: Constrain responses to a JSON schema
Reasoning: Control how much effort the model spends thinking with configurable effort levels
Getting started
Install the OpenAI SDK and point it at AI Gateway.
Basic example: text generation
Send a prompt and get a response from any supported model.
Structured output with reasoning
Combine reasoning levels with a JSON schema to get structured responses.
To learn more about the Responses API, read the documentation.
Read more
同じ出来事を6媒体で確認
同じ出来事を扱う別媒体の記事です。見出しと公開時刻を比較できます。
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み