Files
oak-gpui/crates
Stephen Murray a00b07371a copilot: Fix vision request detection for follow-up messages (#31760)
Previously, the vision request header was only set if the last message
in a thread contained an image. This caused 400 errors from the Copilot
API when sending follow-up messages in a thread that contained images in
earlier messages.

Modified the `is_vision_request` check to scan all messages in a thread
for image content instead of just the last one, ensuring the proper
header is set for the entire conversation.

Added a unit test to verify all cases function correctly.

Release Notes:

- Fix GitHub Copilot chat provider error when sending follow-up messages
in threads containing images
2025-05-30 16:32:49 +00:00
..
2025-05-20 23:06:07 +00:00
2025-05-07 23:11:09 +03:00
2025-04-23 20:54:09 +00:00
2025-05-27 14:14:25 -04:00
2025-05-27 14:14:25 -04:00
2025-05-01 19:24:14 +00:00
2025-05-29 15:20:58 -04:00