feat: 支持 OpenAI Responses API

This commit is contained in:
Zipper_Wang committed 2026-08-25 17:15:07 +08:00
1 parent 8e5b9790f6
commit 5ff67edaef
9 files changed
+539 -57

No files matched your search

+4
View File
@@ -7,6 +7,8 @@ export type AIProviderType =
export type AIAuthType = 'bearer' | 'x-api-key' | 'custom-header' | 'none'
export type AIOpenAIProtocol = 'chat-completions' | 'responses'
export interface AIProviderAuth {
type: AIAuthType
headerName?: string
@@ -34,6 +36,8 @@ export interface AIProviderAdvancedSettings {
timeoutMs: number
temperature?: number
maxTokens?: number
stream?: boolean
apiProtocol?: AIOpenAIProtocol
extraHeaders: Record<string, string>
}