llama3
gabyavra opened this issue · comments
The error you're getting in the message is already the result of a try-catch:
Lines 256 to 261 in 279fac5
The model response is streamed to the user and chunks are constructed into the message response -- you likely received a complete response, in addition to the error message, which was caught on a single chunk.
If you don't want to see error messages in the telegram chat, you should be able to replace lines 257-261 with a log or print statement (anything other than a message) and restart your container
next step for this would be RAG support via telegram :)