Neura AI v0.2.8 - Telegram Integration - Text Formatting Enhancements

All clients that have FANA LLM-Telegram integration have been updated.

What's new?


Context

In recent weeks, our team has been working tirelessly to address several issues reported by our users, including errors with Markdown parsing, character escaping, and Telegram API requests. We have also been working to improve the overall performance and stability of our language model.

Key Updates

  • Markdown Parsing: We have updated our Markdown parsing algorithm to correctly handle reserved characters, including dots (.) and hyphens (-). This should resolve issues with formatting and character escaping.

                // Send the response to the Telegram chat
                await axios.post(`https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage`, {
                    chat_id: chatId,
                    text: escapedResponseText, 
                    parse_mode: 'MarkdownV2', 
                });
                console.log('Sent response to Telegram chat');
  • Character Escaping: We have implemented a more robust character escaping mechanism to ensure that all reserved characters are properly escaped in our responses.

    const escapedResponseText = responseText
     .replace(/-/g, '\\-')
     .replace(/[\.|!|#|(|)]/g, '\\$&');
  • Telegram API Requests: We have updated our Telegram API requests to handle errors more gracefully and provide more informative error messages.

    catch (error) {
       console.error('Error handling Telegram message:', error);
       console.error('Error details:', error.response? error.response.data : null);
    }
  • Performance Improvements: We have made several performance optimizations to improve the speed and stability of our language model.

Bug Fixes

  • Fixed an issue with Markdown parsing that caused errors with dot (.) characters.

  • Fixed an issue with character escaping that caused errors with hyphens (-) characters.

  • Fixed an issue with character escaping that caused errors with hyphens (!) characters.

  • Fixed an issue with Telegram API requests that caused errors with bad requests.


We are glad to introduce FANA LLM v0.2.9, which addresses several key issues and improves the overall performance and stability of the Telegram integration. We are committed to continuing to improve and refine our model to provide the best possible experience for our users.


Last updated