mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 02:24:59 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue