chore: fix some function names in comment

Signed-off-by: petercover <raowanxiang@outlook.com>
This commit is contained in:
petercover 2025-01-23 01:04:39 +08:00
parent 0ec25b8b07
commit 5c29c0b5d3
No known key found for this signature in database
GPG key ID: D8F1433BF435B27F
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ func BackendMonitorEndpoint(bm *services.BackendMonitorService) func(c *fiber.Ct
}
}
// BackendMonitorEndpoint shuts down the specified backend
// BackendShutdownEndpoint shuts down the specified backend
// @Summary Backend monitor endpoint
// @Param request body schema.BackendMonitorRequest true "Backend statistics request"
// @Router /backend/shutdown [post]

View file

@ -34,7 +34,7 @@ type Tool struct {
}
type Tools []Tool
// ToJSONNameStructure converts a list of functions to a JSON structure that can be parsed to a grammar
// ToJSONStructure converts a list of functions to a JSON structure that can be parsed to a grammar
// This allows the LLM to return a response of the type: { "name": "function_name", "arguments": { "arg1": "value1", "arg2": "value2" } }
func (f Functions) ToJSONStructure(name, args string) JSONFunctionStructure {
nameKey := defaultFunctionNameKey