fix: support raw JSON response tool arguments

This commit is contained in:
Seefs committed 2026-04-26 13:47:37 +08:00
1 parent f2f3410dcf
commit db89b57e1c
5 files changed
+76 -3

No files matched your search

+1 -1
View File
@@ -408,7 +408,7 @@ func OaiResponsesToChatStreamHandler(c *gin.Context, info *relaycommon.RelayInfo
toolCallNameByID[callID] = name
}
newArgs := streamResp.Item.Arguments
newArgs := streamResp.Item.ArgumentsString()
prevArgs := toolCallArgsByID[callID]
argsDelta := ""
if newArgs != "" {