Merge pull request #4469 from seefs001/fix/tool-arguments-object

fix: support raw JSON response tool arguments
This commit is contained in:
Calcium-Ion
2026-04-26 20:20:03 +08:00
committed by GitHub
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 != "" {