mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-22 16:39:05 +00:00
Add grammar_json to the request parameters to facilitate JSON generation
This commit is contained in:
@ -11,8 +11,8 @@ type Function struct {
|
||||
}
|
||||
type Functions []Function
|
||||
|
||||
func (f Functions) ToJSONStructure() JSONStructure {
|
||||
js := JSONStructure{}
|
||||
func (f Functions) ToJSONStructure() JSONFunctionStructure {
|
||||
js := JSONFunctionStructure{}
|
||||
for _, function := range f {
|
||||
// t := function.Parameters["type"]
|
||||
//tt := t.(string)
|
||||
|
Reference in New Issue
Block a user