From 28823fc8161e2142f0da2ae8e09df0c70933fcb1 Mon Sep 17 00:00:00 2001 From: Gerred Dillon Date: Tue, 27 Feb 2024 10:01:27 -0600 Subject: [PATCH] loosen functions type (#71) --- backends/openai/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backends/openai/types.py b/backends/openai/types.py index ec16549..2ded2bd 100644 --- a/backends/openai/types.py +++ b/backends/openai/types.py @@ -66,8 +66,9 @@ class ChatDelta(BaseModel): class ChatCompletionRequest(BaseModel): model: str messages: list[ChatMessage] - functions: list[ChatFunction] | None = None + functions: list | None = None temperature: float | None = 1.0 + top_p: float | None = 1 stream: bool | None = False stop: str | None = None max_tokens: int | None = 128