mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-21 06:56:58 +00:00
style: 统一 input 包装类型为 []any,与正常 OAuth 路径一致
This commit is contained in:
@@ -581,7 +581,7 @@ func normalizeOpenAIPassthroughOAuthBody(body []byte, compact bool) ([]byte, boo
|
||||
text := inputResult.String()
|
||||
var inputValue any
|
||||
if strings.TrimSpace(text) != "" {
|
||||
inputValue = []map[string]any{{
|
||||
inputValue = []any{map[string]any{
|
||||
"type": "message", "role": "user", "content": text,
|
||||
}}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user