Issue run example weather agent and get error
Hi I know it's maybe a really easy one, but I just follow the steps for beginner that set up the Mastra and run it locally
I got error in the agent that says something like:
the work flow calls the api correctly but can not run in the agent,
I tested in the work flow, it works fine.
any helps are welcome.
Thank you!



5 Replies
π Created GitHub issue: https://github.com/mastra-ai/mastra/issues/10860
π If you're experiencing an error, please provide a minimal reproducible example whenever possible to help us resolve it quickly.
π Thank you for helping us improve Mastra!
When talking to the agent directly you get an error but not in workflows?
Hey @θΆ
ε₯123 ! It looks the "zero data retention" setting you have setup on your OpenAI org isn't playing well with our default memory setting.
Could you try adding this provider option to the agent's config?
If you're using v1, it should be
defaultOptions instead of defaultVNextStreamOptionsSmall correction should be
defaultStreamVNextOptions if not using v1thank you so much!! it works!!
yes, it calls opan AI api and get the respond back correctly. something seems wrong for the memory setting