Skip to content

Mobile action message send error #432

@artiomborovinskii

Description

@artiomborovinskii

​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

Image

Metadata

Metadata

Assignees

Labels

type:bugReport of an error, flaw, or fault.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions