From 80ac3b3e87ee5df53a8068d1e70d3b3e3f674f0c Mon Sep 17 00:00:00 2001 From: shao0222 <22172112+shao0222@users.noreply.github.com> Date: Thu, 24 Aug 2023 11:58:53 +0800 Subject: [PATCH] fix: fix the issue of function_call not working when using model mapping. --- controller/relay.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/relay.go b/controller/relay.go index 86f16c45..86874277 100644 --- a/controller/relay.go +++ b/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 {