Skip to content

Commit a05737c

Browse files
authored
chore: fix some function names in comment (mudler#4665)
Signed-off-by: petercover <raowanxiang@outlook.com>
1 parent e8eb0b2 commit a05737c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/http/endpoints/localai/backend_monitor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func BackendMonitorEndpoint(bm *services.BackendMonitorService) func(c *fiber.Ct
2828
}
2929
}
3030

31-
// BackendMonitorEndpoint shuts down the specified backend
31+
// BackendShutdownEndpoint shuts down the specified backend
3232
// @Summary Backend monitor endpoint
3333
// @Param request body schema.BackendMonitorRequest true "Backend statistics request"
3434
// @Router /backend/shutdown [post]

pkg/functions/functions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type Tool struct {
3434
}
3535
type Tools []Tool
3636

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

0 commit comments

Comments
 (0)