ruecat / ollama-telegram

🦙 Ollama Telegram bot, with advanced configuration
MIT License
298 stars 82 forks source link

Add /getcontext command for debugging #8

Closed ShrirajHegde closed 11 months ago

ShrirajHegde commented 11 months ago
ruecat commented 11 months ago

Thanks for the PR! I created new branch for debugging and testing: dev. /getcontext will be moved there.

ShrirajHegde commented 11 months ago

Debugging can also be useful while in regular use, not just development. Because it's not very obvious of what the chat context is just by seeing the chat history on telegram.

ShrirajHegde commented 11 months ago

0376c52 also has the changes for response as reply to the message.

I don't think maintaining branches like this will be practical. Instead, you should use python logging module and use the logging levels along with an environmental variable like LOG_LEVEL. This way it can be easily set in env file.

Two different branches diverge unexpectedly and create a merge conflict very soon, which will be a huge problem. Dev branch is not for dev purposes like this, instead it is the changes 'in development'.