From 0db81355bcc4b6b750cad2c3eb2a110350b9e4ce Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 6 Nov 2023 07:11:49 -0800 Subject: [PATCH] Reorder a parameter --- extensions/openai/typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/openai/typing.py b/extensions/openai/typing.py index 2f24987..07b2a39 100644 --- a/extensions/openai/typing.py +++ b/extensions/openai/typing.py @@ -8,7 +8,6 @@ from pydantic import BaseModel, Field class GenerationOptions(BaseModel): preset: str | None = None temperature: float = 1 - temperature_last: bool = False top_p: float = 1 min_p: float = 0 top_k: int = 0 @@ -27,6 +26,7 @@ class GenerationOptions(BaseModel): mirostat_mode: int = 0 mirostat_tau: float = 5 mirostat_eta: float = 0.1 + temperature_last: bool = False do_sample: bool = True seed: int = -1 encoder_repetition_penalty: float = 1