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
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
|
@ -34,6 +34,7 @@
|
|||
"nobot",
|
||||
"nparr",
|
||||
"numpy",
|
||||
"Ollama",
|
||||
"opencv",
|
||||
"percpu",
|
||||
"phibiscarf",
|
||||
|
|
@ -48,6 +49,7 @@
|
|||
"sweary",
|
||||
"testpaths",
|
||||
"thelovinator",
|
||||
"Thicc",
|
||||
"tobytes",
|
||||
"twimg",
|
||||
"unsignedinteger",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue