Просмотр исходного кода

fix: fix the issue of function_call not working when using model mapping (#462)

shao0222 2 лет назад
Родитель
Сommit
4f2f911e4d
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      controller/relay.go

+ 1 - 0
controller/relay.go

@@ -40,6 +40,7 @@ type GeneralOpenAIRequest struct {
 	Input       any       `json:"input,omitempty"`
 	Input       any       `json:"input,omitempty"`
 	Instruction string    `json:"instruction,omitempty"`
 	Instruction string    `json:"instruction,omitempty"`
 	Size        string    `json:"size,omitempty"`
 	Size        string    `json:"size,omitempty"`
+	Functions   any       `json:"functions,omitempty"`
 }
 }
 
 
 type ChatRequest struct {
 type ChatRequest struct {