style: 统一 input 包装类型为 []any,与正常 OAuth 路径一致
This commit is contained in:
1 parent
851436c552
commit
3e26dfa5bb
1 file changed
+1
-1
@@ -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