From 8ad829f82a6a83e23b4b0855783c312e1fd09011 Mon Sep 17 00:00:00 2001 From: kelvin Date: Sat, 27 May 2023 22:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dembeddings=E6=8E=A5=E5=8F=A3i?= =?UTF-8?q?nput=E4=B8=8D=E8=83=BD=E6=8E=A5=E5=8F=97=E6=95=B0=E7=BB=84?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index 649c0c2..e454d4f 100644 --- a/main.go +++ b/main.go @@ -29,15 +29,15 @@ type Message struct { } type ChatRequest struct { - Stream bool `json:"stream,omitempty"` - Model string `json:"model,omitempty"` - PresencePenalty float64 `json:"presence_penalty,omitempty"` - Temperature float64 `json:"temperature,omitempty"` - Messages []Message `json:"messages,omitempty"` - Prompt string `json:"prompt,omitempty"` - Input string `json:"input,omitempty"` - Instruction string `json:"instruction,omitempty"` - N int `json:"n,omitempty"` + Stream bool `json:"stream,omitempty"` + Model string `json:"model,omitempty"` + PresencePenalty float64 `json:"presence_penalty,omitempty"` + Temperature float64 `json:"temperature,omitempty"` + Messages []Message `json:"messages,omitempty"` + Prompt string `json:"prompt,omitempty"` + Input interface{} `json:"input,omitempty"` + Instruction string `json:"instruction,omitempty"` + N int `json:"n,omitempty"` } type ImagesRequest struct {