chore: fix some function names in comment (#4665)

Signed-off-by: petercover <raowanxiang@outlook.com>
This commit is contained in:
Peter Cover 2025-01-23 02:35:53 +08:00 committed by GitHub
parent e8eb0b2c50
commit a05737c7e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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