ZIm/crates/copilot/src
Umesh Yadav f915c24279
copilot: Fix rate limit due to Copilot-Vision-Request header (#30989)
Issues: #30994

I've implemented an important optimisation in response to GitHub
Copilot's recent rate limit on concurrent Vision API calls. Previously,
our system was defaulting to vision header: true for all API calls. To
prevent unnecessary calls and adhere to the new limits, I've updated our
logic: the vision header is now only sent if the current message is a
vision message, specifically when the preceding message includes an
image.

Prompt used to reproduce and verify the fix: `Give me a context for my
agent crate about. Browse my repo.`

Release Notes:

- copilot: Set Copilot-Vision-Request header based on message content
2025-05-21 12:51:35 -04:00
..
copilot.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
copilot_chat.rs copilot: Fix rate limit due to Copilot-Vision-Request header (#30989) 2025-05-21 12:51:35 -04:00
copilot_completion_provider.rs Add completions.lsp_insert_mode setting to control what ranges are replaced when a completion is inserted (#27453) 2025-04-02 16:55:03 -03:00
request.rs lsp: Revert URL type change (#13193) 2024-06-18 12:39:56 +02:00
sign_in.rs Make copilot::SignIn open sign-in modal when needed (#30239) 2025-05-08 14:52:07 +00:00