mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 17:05:41 +01:00
Revise default_mode to Literal (enum) and add to settings.yaml
This commit is contained in:
parent
a5e796fcea
commit
3acff52e4c
2 changed files with 9 additions and 7 deletions
|
|
@ -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.",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue