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

This commit is contained in:
CaIon committed 2025-08-26 13:17:31 +08:00
1 parent f249cf9acc
commit 3e5bc637de
5 files changed
+73 -28

No files matched your search

+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,