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:
Joakim Hellsén 2025-09-26 03:19:22 +02:00
commit 68e74ca6a3
5 changed files with 524 additions and 478 deletions

View file

@ -34,6 +34,7 @@
"nobot",
"nparr",
"numpy",
"Ollama",
"opencv",
"percpu",
"phibiscarf",
@ -48,6 +49,7 @@
"sweary",
"testpaths",
"thelovinator",
"Thicc",
"tobytes",
"twimg",
"unsignedinteger",