diff --git a/core/http/endpoints/localai/backend_monitor.go b/core/http/endpoints/localai/backend_monitor.go index fa11b5c36e22..a1b93ac38bb9 100644 --- a/core/http/endpoints/localai/backend_monitor.go +++ b/core/http/endpoints/localai/backend_monitor.go @@ -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] diff --git a/pkg/functions/functions.go b/pkg/functions/functions.go index 1a7e1ff1711e..477a43bb7260 100644 --- a/pkg/functions/functions.go +++ b/pkg/functions/functions.go @@ -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