6. Responses API#
POST /v1/responses — OpenAI Responses API の互換実装です。input(文字列またはメッセージ配列)と任意の instructions(system プロンプトに相当)を受け取り、内部でチャット補完に変換して処理します。
cURL
curl http://183.240.79.21:52099/v1/responses \
-H "Authorization: Bearer sk-你的YiTuoToken-Key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"instructions": "你是一个简洁的助手。",
"input": "用一句话解释什么是量子纠缠"
}'
input はメッセージ配列でも指定できます:
JSON
{
"model": "gpt-4o",
"input": [
{ "role": "user", "content": "你好" }
]
}