Skip to content

Commit

Permalink
chore: fix some function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: petercover <[email protected]>
  • Loading branch information
petercover committed Jan 22, 2025
1 parent 0ec25b8 commit d01d008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/http/endpoints/localai/backend_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion pkg/functions/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d01d008

Please sign in to comment.