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": "你好" }
]
}