mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
chore: fix some function names in comment (#4665)
Signed-off-by: petercover <raowanxiang@outlook.com>
This commit is contained in:
parent
e8eb0b2c50
commit
a05737c7e4
2 changed files with 2 additions and 2 deletions
|
@ -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
|
// @Summary Backend monitor endpoint
|
||||||
// @Param request body schema.BackendMonitorRequest true "Backend statistics request"
|
// @Param request body schema.BackendMonitorRequest true "Backend statistics request"
|
||||||
// @Router /backend/shutdown [post]
|
// @Router /backend/shutdown [post]
|
||||||
|
|
|
@ -34,7 +34,7 @@ type Tool struct {
|
||||||
}
|
}
|
||||||
type Tools []Tool
|
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" } }
|
// 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 {
|
func (f Functions) ToJSONStructure(name, args string) JSONFunctionStructure {
|
||||||
nameKey := defaultFunctionNameKey
|
nameKey := defaultFunctionNameKey
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue