mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-08 02:53:41 +00:00
Revise default_mode to Literal (enum) and add to settings.yaml
This commit is contained in:
parent
a5e796fcea
commit
3acff52e4c
@ -350,7 +350,7 @@ class AzureOpenAISettings(BaseModel):
|
|||||||
class UISettings(BaseModel):
|
class UISettings(BaseModel):
|
||||||
enabled: bool
|
enabled: bool
|
||||||
path: str
|
path: str
|
||||||
default_mode: str = Field(
|
default_mode: Literal["RAG", "Search", "Basic", "Summarize"] = Field(
|
||||||
"RAG",
|
"RAG",
|
||||||
description="The default mode.",
|
description="The default mode.",
|
||||||
)
|
)
|
||||||
|
@ -25,6 +25,8 @@ data:
|
|||||||
ui:
|
ui:
|
||||||
enabled: true
|
enabled: true
|
||||||
path: /
|
path: /
|
||||||
|
# "RAG", "Search", "Basic", or "Summarize"
|
||||||
|
default_mode: "Summarize"
|
||||||
default_chat_system_prompt: >
|
default_chat_system_prompt: >
|
||||||
You are a helpful, respectful and honest assistant.
|
You are a helpful, respectful and honest assistant.
|
||||||
Always answer as helpfully as possible and follow ALL given instructions.
|
Always answer as helpfully as possible and follow ALL given instructions.
|
||||||
|
Loading…
Reference in New Issue
Block a user