From 5d9af110826c22f64084a653ae55d2b2935978e5 Mon Sep 17 00:00:00 2001 From: Simone Vellei Date: Tue, 7 Nov 2023 07:50:03 +0100 Subject: [PATCH] chore: add seed new parameter --- chat.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chat.go b/chat.go index cf998cb1..3aa40f12 100644 --- a/chat.go +++ b/chat.go @@ -92,6 +92,7 @@ type ChatCompletionRequest struct { Stop []string `json:"stop,omitempty"` PresencePenalty float32 `json:"presence_penalty,omitempty"` ResponseFormat *ChatCompletionResponseFormat `json:"response_format,omitempty"` + Seed *int `json:"seed,omitempty"` FrequencyPenalty float32 `json:"frequency_penalty,omitempty"` // LogitBias is must be a token id string (specified by their token ID in the tokenizer), not a word string. // incorrect: `"logit_bias":{"You": 6}`, correct: `"logit_bias":{"1639": 6}`