From 952a05a7c8645a7cbdea2e7a13a424ae0b946c2f Mon Sep 17 00:00:00 2001 From: Samuel Weinhardt Date: Sun, 14 Jan 2024 11:30:36 -0500 Subject: [PATCH] Correct field alias types for OpenAI extension (#5257) --- extensions/openai/typing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/openai/typing.py b/extensions/openai/typing.py index cd997106..f4923967 100644 --- a/extensions/openai/typing.py +++ b/extensions/openai/typing.py @@ -99,8 +99,8 @@ class ChatCompletionRequestParams(BaseModel): instruction_template_str: str | None = Field(default=None, description="A Jinja2 instruction template. If set, will take precedence over everything else.") character: str | None = Field(default=None, description="A character defined under text-generation-webui/characters. If not set, the default \"Assistant\" character will be used.") - user_name: str | None = Field(default=None, description="Your name (the user). By default, it's \"You\".", alias=['name1']) - bot_name: str | None = Field(default=None, description="Overwrites the value set by character field.", alias=['name2']) + user_name: str | None = Field(default=None, description="Your name (the user). By default, it's \"You\".", alias="name1") + bot_name: str | None = Field(default=None, description="Overwrites the value set by character field.", alias="name2") context: str | None = Field(default=None, description="Overwrites the value set by character field.") greeting: str | None = Field(default=None, description="Overwrites the value set by character field.") chat_template_str: str | None = Field(default=None, description="Jinja2 template for chat.")