Skip to content

How to Modify Request and Response Structure in GenKit? #1245

Answered by pavelgj
pascalconfluent asked this question in Q&A
Discussion options

You must be logged in to vote

Currently Genkit follows Cloud Functions for Firebase callable function format so that you can use firebase client SDK to call flows from your client app (web, flutter, android, iOS, etc.): https://firebase.google.com/docs/functions/callable?gen=2nd
It's not customizable.

If you need fine control of the protocol I would recommend creating your own express server. We have an example here: https://github.com/firebase/genkit/blob/main/js/testapps/express/src/index.ts

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pascalconfluent
Comment options

Answer selected by pascalconfluent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants