feat(ui): Allows User to Set System Prompt via "Additional Options" in Chat Interface (#1353)

This commit is contained in:
3ly-13 2023-12-10 12:45:14 -06:00 committed by GitHub
parent a072a40a7c
commit 145f3ec9f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 110 additions and 18 deletions

View file

@ -147,13 +147,20 @@ class OpenAISettings(BaseModel):
api_key: str
model: str = Field(
"gpt-3.5-turbo",
description=("OpenAI Model to use. Example: 'gpt-4'."),
description="OpenAI Model to use. Example: 'gpt-4'.",
)
class UISettings(BaseModel):
enabled: bool
path: str
default_chat_system_prompt: str = Field(
None,
description="The default system prompt to use for the chat mode.",
)
default_query_system_prompt: str = Field(
None, description="The default system prompt to use for the query mode."
)
class QdrantSettings(BaseModel):