@@ -613,7 +613,7 @@ func (c *AIController) executeToolCalls(ctx *gin.Context, _ http.ResponseWriter,
613613
614614 for _ , toolCall := range validToolCalls {
615615 if toolCall .Function .Name != "" {
616- var args map [string ]interface {}
616+ var args map [string ]any
617617 if err := json .Unmarshal ([]byte (toolCall .Function .Arguments ), & args ); err != nil {
618618 log .Errorf ("Failed to parse tool arguments for %s: %v, arguments: %s" , toolCall .Function .Name , err , toolCall .Function .Arguments )
619619 errorResult := fmt .Sprintf ("Error parsing tool arguments: %v" , err )
@@ -677,14 +677,14 @@ func (c *AIController) getMCPTools() []openai.Tool {
677677
678678// convertMCPToolToOpenAI
679679func (c * AIController ) convertMCPToolToOpenAI (mcpTool mcp.Tool ) openai.Tool {
680- properties := make (map [string ]interface {} )
680+ properties := make (map [string ]any )
681681 required := make ([]string , 0 )
682682
683683 maps .Copy (properties , mcpTool .InputSchema .Properties )
684684
685685 required = append (required , mcpTool .InputSchema .Required ... )
686686
687- parameters := map [string ]interface {} {
687+ parameters := map [string ]any {
688688 "type" : "object" ,
689689 "properties" : properties ,
690690 }
@@ -704,7 +704,7 @@ func (c *AIController) convertMCPToolToOpenAI(mcpTool mcp.Tool) openai.Tool {
704704}
705705
706706// callMCPTool
707- func (c * AIController ) callMCPTool (ctx context.Context , toolName string , arguments map [string ]interface {} ) (string , error ) {
707+ func (c * AIController ) callMCPTool (ctx context.Context , toolName string , arguments map [string ]any ) (string , error ) {
708708 request := mcp.CallToolRequest {
709709 Request : mcp.Request {},
710710 Params : struct {
0 commit comments