瀏覽代碼

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

shao0222 2 年之前
父節點
當前提交
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"`
 	Instruction string    `json:"instruction,omitempty"`
 	Size        string    `json:"size,omitempty"`
+	Functions   any       `json:"functions,omitempty"`
 }
 
 type ChatRequest struct {