feat(api): 统一官方兼容接口响应协议
兼容接口现在以入口协议作为最终响应协议,同协议保留官方 Wire 响应,跨协议统一转换成功、任务状态与错误结构。 同时修正异步提交状态边界,持久化兼容公开任务标识和官方提交响应,并新增迁移、流式响应及协议契约测试。 验证:go vet ./...;go test ./...;govulncheck ./...;pnpm lint;pnpm test;pnpm build;pnpm audit --audit-level high;pnpm openapi;全部 CI 脚本。
This commit is contained in:
@@ -15,6 +15,12 @@ const (
|
||||
ProtocolOpenAIChatCompletions = "openai_chat_completions"
|
||||
ProtocolOpenAIResponses = "openai_responses"
|
||||
ProtocolAnthropicMessages = "anthropic_messages"
|
||||
ProtocolOpenAIEmbeddings = "openai_embeddings"
|
||||
ProtocolOpenAIImages = "openai_images"
|
||||
ProtocolGeminiGenerateContent = "gemini_generate_content"
|
||||
ProtocolVolcesContents = "volces_contents_generations_v3"
|
||||
ProtocolKlingV1Omni = "kling_v1_omni_video"
|
||||
ProtocolKlingV2Omni = "kling_v2_omni_video"
|
||||
)
|
||||
|
||||
var supportedResponseFallbackParameters = map[string]struct{}{
|
||||
|
||||
Reference in New Issue
Block a user