-
Notifications
You must be signed in to change notification settings - Fork 604
Description
Describe the bug
The way to trigger flows in Go vs JS is not consistent at the moment.
Go: curl -d '{"customerName": "Stimpy"}' http://localhost:3400/testAllCoffeeFlows
JS: curl -d '{"data": {"modelName": "vertexai/gemini-1.0-pro", "subject": "banana"}}' http://localhost:3400/jokeFlow -H "Content-Type: application/json"
Notice that the payload has to be wrapped in data field for JS.
To Reproduce
Go: Run the coffee-shop sample (go run .) and trigger a flow using the above command.
JS: Add startFlowServer() to the flow-simple-ai sample, start the genkit server (genkit start) and trigger a flow using the above command.
Expected behavior
Both Go and JS have similar APIs (require the "data" wrapper field).
Runtime (please complete the following information):
- OS: Linux Debian
Go version
go version go1.23-20240419-RC02 cl/626470163 +7f76c00fc5 X:fieldtrack,boringcrypto linux/amd64
Metadata
Metadata
Assignees
Labels
Type
Projects
Status