fix: support raw JSON response tool arguments

This commit is contained in:
Seefs
2026-04-26 13:47:37 +08:00
parent f2f3410dcf
commit db89b57e1c
5 changed files with 76 additions and 3 deletions
+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 != "" {