[bug fix] Fixed a small bug.
This commit is contained in:
@@ -201,4 +201,4 @@ Blog: https://blog.rune.pm
|
|||||||
|
|
||||||
## Support
|
## Support
|
||||||
|
|
||||||
For issues, questions, or contributions, visit https://iurl.no/oai
|
For issues, questions, or contributions, visit https://iurl.no/oai and create an issue.
|
||||||
6
oai.py
6
oai.py
@@ -642,10 +642,8 @@ def chat():
|
|||||||
console.print("[bold yellow]No change.[/]")
|
console.print("[bold yellow]No change.[/]")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
console.print(f"[bold red]Error updating URL: {e}[/]")
|
console.print(f"[bold red]Error updating URL: {e}[/]")
|
||||||
elif args == "costwarning":
|
elif args.startswith("costwarning"):
|
||||||
sub_args = user_input[8 + len("costwarning"):].strip() # From after "costwarning"
|
sub_args = args[11:].strip() # Extract everything after "costwarning"
|
||||||
if sub_args == "costwarning":
|
|
||||||
sub_args = "" # No value provided
|
|
||||||
if not sub_args:
|
if not sub_args:
|
||||||
console.print(f"[bold blue]Stored cost warning threshold: ${COST_WARNING_THRESHOLD:.4f}[/]")
|
console.print(f"[bold blue]Stored cost warning threshold: ${COST_WARNING_THRESHOLD:.4f}[/]")
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user