-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Bug Report Description
Describe the bug:
The application crashes with an INTERNAL: Object is not callable: null error when attempting to send a message. The error stack trace points to a Jinja2 templating issue within nativeSendMessageAsync. Specifically, it fails at {{- format_function_declaration(tool) | trim }} at row 21, column 40. This suggests the format_function_declaration helper function is missing or undefined in the current prompt template context.
To Reproduce:
Open a chat window.
(Presumably) Select a model that supports "Tools" or "Function Calling."
Attempt to send a message or start a conversation.
The "Error" modal appears immediately with the stack trace shown in the screenshot.
Expected behavior:
The message should send successfully, and the model should generate a response without triggering a template rendering error.
Screenshots:
(Attach the image you uploaded)
Device & App Information:
Device: Xiaomi Poco X5 5G
Android Version: Android 14
App Version: 1.0.9
