Add Ollama API integration and enhance bot functionality
- Updated .env.example to include OLLAMA_API_KEY. - Added Ollama to dependencies in pyproject.toml. - Refactored main.py to incorporate Ollama for web search capabilities. - Removed misc.py as its functionality has been integrated into main.py. - Enhanced message handling and memory management for improved performance.
This commit is contained in:
parent
eec1ed4f59
commit
68e74ca6a3
5 changed files with 524 additions and 478 deletions
|
|
@ -1,2 +1,3 @@
|
|||
DISCORD_TOKEN=
|
||||
OPENAI_TOKEN=
|
||||
OLLAMA_API_KEY=
|
||||
Loading…
Add table
Add a link
Reference in a new issue