Small changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# OAI Chat App
|
||||
# oAI Chat App
|
||||
|
||||
A command-line interface (CLI) chat application for interacting with AI language models via OpenRouter. Seamlessly switch between 300+ models, attach files (images and text), enjoy real-time streaming responses, and manage settings persistently—all from your terminal. Perfect for developers, writers, and AI enthusiasts looking for a fast, feature-rich chat experience without leaving the command line.
|
||||
|
||||
@@ -89,7 +89,7 @@ python oai_chat.py chat
|
||||
### Example Session
|
||||
|
||||
```
|
||||
Welcome to OAI! Type your message, '/model [search]' to select/change model, '/config api/url/stream' to configure, '/help' for examples, or 'exit'/'quit' to end.
|
||||
Welcome to oAI! Type your message, '/model [search]' to select/change model, '/config api/url/stream' to configure, '/help' for examples, or 'exit'/'quit' to end.
|
||||
No model selected. Use '/model' to choose one.
|
||||
|
||||
You> /help
|
||||
@@ -155,7 +155,7 @@ If issues persist, open a GitHub issue with error logs.
|
||||
|
||||
## 🤝 Contributing
|
||||
|
||||
We welcome contributions to improve the OAI Chat App! Follow standard practices: fork, branch, test, and submit PRs. Please include updates to this README for new features.
|
||||
We welcome contributions to improve the oAI Chat App! Follow standard practices: fork, branch, test, and submit PRs. Please include updates to this README for new features.
|
||||
|
||||
## 📜 License
|
||||
|
||||
|
||||
6
oai.py
6
oai.py
@@ -83,7 +83,7 @@ def clear_screen():
|
||||
|
||||
@app.command()
|
||||
def chat():
|
||||
"""Start the OAI chat app with OpenRouter models."""
|
||||
"""Start the oAI chat app with OpenRouter models."""
|
||||
global API_KEY, OPENROUTER_BASE_URL, STREAM_ENABLED # Allow updates via /config commands
|
||||
|
||||
if not API_KEY:
|
||||
@@ -108,7 +108,7 @@ def chat():
|
||||
selected_model = None
|
||||
client = OpenRouter(api_key=API_KEY)
|
||||
|
||||
console.print("[bold blue]Welcome to OAI! Type your message, '/model [search]' to select/change model, '/config api/url/stream' to configure, '/help' for examples, or 'exit'/'quit' to end.[/]")
|
||||
console.print("[bold blue]Welcome to oAI! Type your message, '/model [search]' to select/change model, '/config api/url/stream' to configure, '/help' for examples, or 'exit'/'quit' to end.[/]")
|
||||
if not selected_model:
|
||||
console.print("[bold yellow]No model selected. Use '/model' to choose one.[/]")
|
||||
|
||||
@@ -252,7 +252,7 @@ def chat():
|
||||
"Quit the chat app with either 'exit', 'quit' or 'bye'",
|
||||
"exit\n[bold yellow]Goodbye![/bold yellow]"
|
||||
)
|
||||
console.print(Panel(help_table, title="[bold cyan]OAI Chat Help - Command Examples[/]", title_align="center"))
|
||||
console.print(Panel(help_table, title="[bold cyan]oAI Chat Help - Command Examples[/]", title_align="center"))
|
||||
continue
|
||||
|
||||
if not selected_model:
|
||||
|
||||
Reference in New Issue
Block a user