mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-05-21 23:24:44 +02:00
Allow empty system prompt in configurator
This commit is contained in:
parent
8647dd3d91
commit
459028e79e
1 changed files with 4 additions and 3 deletions
|
|
@ -292,11 +292,12 @@ class Configurator:
|
|||
self.modified = True
|
||||
elif choice == 5:
|
||||
console.print("\n[dim]Current prompt:[/dim]")
|
||||
console.print(self.config.llm.system_prompt)
|
||||
console.print(self.config.llm.system_prompt or "(empty)")
|
||||
console.print()
|
||||
if Confirm.ask("Edit system prompt?", default=False):
|
||||
value = Prompt.ask("New system prompt")
|
||||
if value:
|
||||
console.print("[dim]Enter new prompt, or leave empty to clear[/dim]")
|
||||
value = Prompt.ask("New system prompt", default="")
|
||||
if value != self.config.llm.system_prompt:
|
||||
self.config.llm.system_prompt = value
|
||||
self.modified = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue