fix: Invalid type for 'input[x].summary': expected an array of objects, but got null instead

This commit is contained in:
CaIon
2025-08-26 13:17:31 +08:00
parent f249cf9acc
commit 3e5bc637de
5 changed files with 73 additions and 28 deletions
+1 -1
View File
@@ -313,7 +313,7 @@ func GenRelayInfoResponses(c *gin.Context, request *dto.OpenAIResponsesRequest)
BuiltInTools: make(map[string]*BuildInToolInfo),
}
if len(request.Tools) > 0 {
for _, tool := range request.Tools {
for _, tool := range request.GetToolsMap() {
toolType := common.Interface2String(tool["type"])
info.ResponsesUsageInfo.BuiltInTools[toolType] = &BuildInToolInfo{
ToolName: toolType,