style: 统一 input 包装类型为 []any,与正常 OAuth 路径一致

This commit is contained in:
li
2026-07-22 16:49:31 +08:00
parent 851436c552
commit 3e26dfa5bb
@@ -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 {