29 lines
970 B
Markdown
29 lines
970 B
Markdown
---
|
||
title: "ResponsesAPI"
|
||
type: concept
|
||
tags:
|
||
- "openai"
|
||
- "api"
|
||
- "experimental"
|
||
sources: []
|
||
last_updated: 2026-04-20
|
||
---
|
||
|
||
## Overview
|
||
|
||
Responses API 是 OpenAI 提供的实验性 API 格式,通过 `POST /v1/responses` 端点调用。相比 Chat Completions,其核心差异在于支持服务端对话状态维持(`previous_response_id`)和结构化事件流。
|
||
|
||
## Key Features
|
||
|
||
- **服务端状态**:`previous_response_id` 参数让服务端维护对话历史
|
||
- **结构化事件流**:SSE 事件包含 `text_delta`、`function_call`、`function_call_output` 等标准事件类型
|
||
- **工具调用 UI**:可实现自定义结构化工具调用界面
|
||
|
||
## Current Limitation
|
||
|
||
Open WebUI 目前在 Responses 模式下仍然客户端管理对话历史(每次请求发送完整消息列表),尚未充分利用 `previous_response_id`。当前 Responses 模式的主要优势是结构化事件流。
|
||
|
||
## See Also
|
||
- [[APIServer]]
|
||
- [[ChatCompletions]]
|