From 3311f10db20e259d7cc8a3b9fac819e7d1b93326 Mon Sep 17 00:00:00 2001 From: Arihant Jain Date: Fri, 10 Mar 2023 23:11:49 +0530 Subject: [PATCH] correct CreateCompletionParams top_p json name (#11) --- chat/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat/chat.go b/chat/chat.go index 564058b..13c3480 100644 --- a/chat/chat.go +++ b/chat/chat.go @@ -43,7 +43,7 @@ type CreateCompletionParams struct { Stream bool `json:"stream,omitempty"` N int `json:"n,omitempty"` - TopP float64 `json:"top_n,omitempty"` + TopP float64 `json:"top_p,omitempty"` Temperature float64 `json:"temperature,omitempty"` MaxTokens int `json:"max_tokens,omitempty"`