Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(inline): fixes gemini-2.0-flash-exp code blocking #568

Merged
merged 2 commits into from
Dec 24, 2024

Conversation

JonathanREmery
Copy link
Contributor

Description

I've been having issues with gemini-2.0-flash-exp returning code blocks inline, despite the prompt not to. As well as bad classifications... This is an issue with gemini-2.0-flash-exp, not CodeCompanion. However I saw other people were having the same issue so thought I'd put out what's worked for me.

This will manually strip out the code blocking if the model is set to gemini-2.0-flash-exp. I have also added one more example to the PLACEMENT_PROMPT that seems to help with classification a lot.

Related Issue(s)

#536

Checklist

  • [✓ ] I've read the CONTRIBUTING guidelines and have adhered to them in this PR
  • [✓] I've updated the README and ran the make docs command

@olimorris
Copy link
Owner

Thanks so much for adding this.

@olimorris olimorris merged commit a9faa69 into olimorris:main Dec 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants