From a05737c7e43224c66eb0b995be54834747d0dd04 Mon Sep 17 00:00:00 2001 From: Peter Cover Date: Thu, 23 Jan 2025 02:35:53 +0800 Subject: [PATCH] chore: fix some function names in comment (#4665) Signed-off-by: petercover --- core/http/endpoints/localai/backend_monitor.go | 2 +- pkg/functions/functions.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/http/endpoints/localai/backend_monitor.go b/core/http/endpoints/localai/backend_monitor.go index fa11b5c3..a1b93ac3 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 1a7e1ff1..477a43bb 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