Files
zed/crates
Marshall Bowers e484f49ee8 language_models: Treat a block_reason from Gemini as a refusal (#38670)
This PR updates the Gemini provider to treat a
`prompt_feedback.block_reason` as a refusal, as Gemini does not seem to
return a `stop_reason` to use in this case.

<img width="639" height="162" alt="Screenshot 2025-09-22 at 4 23 15 PM"
src="https://github.com/user-attachments/assets/7a86d67e-06c1-49ea-b58f-fa80666f0f8c"
/>

Previously this would just result in no feedback to the user.

Release Notes:

- Added an error message when a Gemini response contains a
`block_reason`.
2025-09-22 20:40:56 +00:00
..
2025-09-18 16:47:23 +00:00
2025-09-18 16:47:23 +00:00
2025-08-13 13:25:52 -06:00
2025-09-08 21:53:17 -06:00
2025-09-18 16:47:23 +00:00
2025-09-03 22:10:14 +00:00
2025-09-18 16:47:23 +00:00
2025-09-18 16:47:23 +00:00
2025-09-18 16:47:23 +00:00
2025-09-17 10:47:09 +00:00
2025-08-19 20:33:44 +00:00
2025-09-18 16:47:23 +00:00
2025-07-17 14:25:55 +00:00
2025-07-08 14:34:57 +00:00
2025-09-08 21:53:17 -06:00
2025-09-18 16:47:23 +00:00
2025-09-18 16:47:23 +00:00
2025-09-18 16:47:23 +00:00
2025-09-08 21:53:17 -06:00
2025-04-02 13:26:34 -07:00
2025-09-18 16:47:23 +00:00
2025-09-19 10:51:21 -06:00
2025-09-18 16:47:23 +00:00
2025-09-18 16:47:23 +00:00
2025-09-18 16:47:23 +00:00
2025-09-18 16:47:23 +00:00
2025-09-18 16:47:23 +00:00
2025-09-18 16:47:23 +00:00