-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Trigger API Call without needing a message #1385
Copy link
Copy link
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels