Revise default_mode to Literal (enum) and add to settings.yaml

This commit is contained in:
Jason 2024-09-10 12:11:23 -04:00
parent a5e796fcea
commit 3acff52e4c
2 changed files with 9 additions and 7 deletions

View File

@ -350,7 +350,7 @@ class AzureOpenAISettings(BaseModel):
class UISettings(BaseModel):
enabled: bool
path: str
default_mode: str = Field(
default_mode: Literal["RAG", "Search", "Basic", "Summarize"] = Field(
"RAG",
description="The default mode.",
)

View File

@ -25,6 +25,8 @@ data:
ui:
enabled: true
path: /
# "RAG", "Search", "Basic", or "Summarize"
default_mode: "Summarize"
default_chat_system_prompt: >
You are a helpful, respectful and honest assistant.
Always answer as helpfully as possible and follow ALL given instructions.