ZIm/crates/assistant_context_editor/src
Marshall Bowers 5c0b161563
Handle new refusal stop reason from Claude 4 models (#31217)
This PR adds support for handling the new [`refusal` stop
reason](https://docs.anthropic.com/en/docs/test-and-evaluate/strengthen-guardrails/handle-streaming-refusals)
from Claude 4 models.

<img width="409" alt="Screenshot 2025-05-22 at 4 31 56 PM"
src="https://github.com/user-attachments/assets/707b04f5-5a52-4a19-95d9-cbd2be2dd86f"
/>

Release Notes:

- Added handling for `"stop_reason": "refusal"` from Claude 4 models.
2025-05-22 16:56:59 -04:00
..
context agent: Handle thread title generation errors (#30273) 2025-05-12 07:45:48 +00:00
assistant_context_editor.rs chore: Make terminal_view own the TerminalSlashCommand (#31070) 2025-05-21 09:27:54 +00:00
context.rs Handle new refusal stop reason from Claude 4 models (#31217) 2025-05-22 16:56:59 -04:00
context_editor.rs chore: Make terminal_view own the TerminalSlashCommand (#31070) 2025-05-21 09:27:54 +00:00
context_history.rs agent: Rename a number of constructs from Assistant to Agent (#30196) 2025-05-08 01:18:51 +00:00
context_store.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
language_model_selector.rs chore: Make terminal_view own the TerminalSlashCommand (#31070) 2025-05-21 09:27:54 +00:00
slash_command.rs zed: Reduce clones (#30550) 2025-05-12 10:09:23 +00:00
slash_command_picker.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00