Procházet zdrojové kódy

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

shao0222 před 2 roky
rodič
revize
4f2f911e4d
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      controller/relay.go

+ 1 - 0
controller/relay.go

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