Small changes
This commit is contained in:
3
oai.py
3
oai.py
@@ -195,10 +195,11 @@ def chat():
|
|||||||
table.add_row("Base URL", OPENROUTER_BASE_URL or "[Not set]")
|
table.add_row("Base URL", OPENROUTER_BASE_URL or "[Not set]")
|
||||||
table.add_row("Streaming", "Enabled" if STREAM_ENABLED == "on" else "Disabled")
|
table.add_row("Streaming", "Enabled" if STREAM_ENABLED == "on" else "Disabled")
|
||||||
table.add_row("Database", str(database) or "[Not set]")
|
table.add_row("Database", str(database) or "[Not set]")
|
||||||
|
table.add_row("Current Model", str(selected_model["name"]) or "[Not set]")
|
||||||
console.print(Panel(table, title="[bold green]Current Configurations[/]", title_align="left"))
|
console.print(Panel(table, title="[bold green]Current Configurations[/]", title_align="left"))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# **NEW: Handle /clear command to clear the screen**
|
# Handle /clear command to clear the screen
|
||||||
if user_input.lower() == "/clear":
|
if user_input.lower() == "/clear":
|
||||||
clear_screen()
|
clear_screen()
|
||||||
console.print("[bold cyan]Screen cleared. Ready for your next input![/]")
|
console.print("[bold cyan]Screen cleared. Ready for your next input![/]")
|
||||||
|
|||||||
Reference in New Issue
Block a user