Stuck in a snag

I got this error

Sorry, I hit a snag. Please try again shortly or modify your prompt. 
Unsupported Part type{"metadata":{"purpose":"${name}","pending":true}}

Anyone with a solution please

What’s the context? Is that an error from your code or a general error in the chat? Does your design use the content from ‘name’?

I’ve found if gemini is hitting snags paste your problem into chatgpt. Sometimes it offers an alternative thinking and you can paste the chatgpt result into Firebase for gemini to read and rethink it’s output approach.

The context is I get that error message when I enter a prompt.

I have been working on the project for a day or two and started getting that error yesterday. All prompt regardless of what it is returns that error.

And I have asked ChatGpt and Gemini itself, none of them had a solution worth trying.

Sorry to hear that.
Tried restarting your workspace?

Yes I did multiple times…

Many people are encountering this error as well.

New Snag error…[GoogleGenerativeAI Error] - General - Firebase Studio Community