genkit
genkit copied to clipboard
fix(go/genkit): expose detailed 4xx errors in googlegenai plugin
- Added
log.Printfandfmt.ErrorfinjokesFlowto log detailed errors. - Used an invalid API key to test error handling.
- Updated context handling for graceful shutdown.
Tested with an invalid API key, producing: Generate error: Error 400, Message: API key not valid...
Checklist (if applicable):
- [X] PR title is following https://www.conventionalcommits.org/en/v1.0.0/
- [X] Tested (manually, unit tested, etc.)
- [ ] Docs updated (updated docs or a docs bug required)