Skip to content

Trigger API Call without needing a message #1385

@ahmadbilaldev

Description

@ahmadbilaldev

Feature Description

Folks is there a way to trigger the API call without needing an input (using handleSubmit) or message (using append)?

Just need to trigger the call without providing any message. Any suggestions on how to go about it?

Use Case

We have generation tasks where we already store messages on the API, and just take some variable values from the user. So, we don't need an additional message. Just need to trigger the call.

Currently, it is not possible. The handle submit function requires an input to run. I have also tried replacing it with append but that (obviously) also requires a message.

Additional context

We are going around this by adding a dummy input message and removing it on the API. Not ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions