Gemini fails with Custom Prompt action #1801
tonivanhala
started this conversation in
Adapters
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The default
Custom Prompt
action (invoked from Action Palette) fails withgemini-2.5-flash-preview-05-20
andgemini-2.5-pro
models. The reported error isNo placement returned
. Inline Assistant works fine out-of-the-box.Gemini returns a response which does not adhere to the required response format. The root cause appears to be multiple
system
prompts in the request, which causes Gemini to ignore some of them. In this case, theCustom Prompt
in the prompt library defines asystem
prompt that is sent along with the general inlinesystem
prompt, which specifies the required response format. Gemini seems to ignore the first system prompt and return raw response text, e.g., just the code to be added.Inline Assistant does not include the second
system
prompt in the request, so it doesn't suffer from this issue.Overriding the
Custom Prompt
in my plugin configuration fixes the issue.I tried to look into making Gemini models to work out-of-the-box with the
Custom Prompt
action, but was unsure what would be the cleanest way to do this.Beta Was this translation helpful? Give feedback.
All reactions