ZIm/crates/language_models/src
Vladimir Kuznichenkov 098896146e
bedrock: Fix subsequent bedrock tool calls fail (#33174)
Closes #30714

Bedrock converse api expect to see tool options if at least one tool was
used in conversation in the past messages.

Right now if `LanguageModelToolChoice::None` isn't supported edit agent
[remove][1] tools from request. That point breaks Converse API of
Bedrock. As was proposed in [the issue][2] we won't drop tool choose but
instead will deny any of them if model will respond with a tool choose.

[1]:
fceba6c795/crates/assistant_tools/src/edit_agent.rs (L703)
[2]:
https://github.com/zed-industries/zed/issues/30714#issuecomment-2886422716

Release Notes:

- Fixed bedrock tool calls in edit mode
2025-06-25 10:37:07 +03:00
..
provider bedrock: Fix subsequent bedrock tool calls fail (#33174) 2025-06-25 10:37:07 +03:00
ui agent: Fix text wrapping in the provider set up list items (#33063) 2025-06-19 18:17:56 -03:00
language_models.rs Add support for Vercel as a language model provider (#33292) 2025-06-24 11:02:06 -03:00
provider.rs Add support for Vercel as a language model provider (#33292) 2025-06-24 11:02:06 -03:00
settings.rs Add support for Vercel as a language model provider (#33292) 2025-06-24 11:02:06 -03:00
ui.rs assistant: Refine settings view's instruction visuals (#25812) 2025-02-28 12:06:47 -03:00