mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 01:05:30 +08:00
feat: 支持 OpenAI Responses API
This commit is contained in:
1 parent
8e5b9790f6
commit
5ff67edaef
9 files changed
+539
-57
No files matched your search
@@ -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>
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user