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

Error while sending request with a selection of code lines: A maximum of 4 blocks with cache_control may be provided. Found 5. #416

Closed
lucaszweili opened this issue Aug 31, 2024 · 1 comment

Comments

@lucaszweili
Copy link

lucaszweili commented Aug 31, 2024

I just installed the avante plugin on my LazyVim. First, it looks amazing but when trying to send API requests with a selection of code lines, I get the same error response:

🚨 Error: "API request failed with status 400. Body: '{\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"A maximum of 4 blocks with cache_control may be provided. Found 5.\"}}'"
Capture d’écran 2024-08-31 à 10 59 05

Thank you

@NeutronicMC
Copy link

Same issue here, just installed 20 minutes ago on v0.10.1 macos and am using the default config provided in README.md

aarnphm added a commit that referenced this issue Aug 31, 2024
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
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

No branches or pull requests

2 participants