ZIm/crates/language_model/src
Kyle Kelley bac39d7743
assistant: Only push text content if not empty with image content (#16270)
If you submit an image with empty space above it and text below, it will
fail with this error:


![image](https://github.com/user-attachments/assets/a4a2265e-815f-48b5-b09e-e178fce82ef7)

Now instead it fails with an error about needing a message.

<img width="640" alt="image"
src="https://github.com/user-attachments/assets/72b267eb-b288-40a5-a829-750121ff16cc">

It will however work with text above and empty text below the image now.

Release Notes:

- Improved conformance with Anthropic Images in Chat Completions API
2024-08-15 22:38:52 -05:00
..
model language_model: Denote the availability of language models (#15660) 2024-08-01 18:26:27 -04:00
provider Implement Anthropic prompt caching (#16274) 2024-08-15 22:21:06 -05:00
language_model.rs Implement Anthropic prompt caching (#16274) 2024-08-15 22:21:06 -05:00
provider.rs Add GitHub Copilot Chat Support (#14842) 2024-07-30 09:32:58 +02:00
rate_limiter.rs Allow customization of the model used for tool calling (#15479) 2024-07-30 16:18:53 +02:00
registry.rs Restructure workflow step resolution and fix inserting newlines (#15720) 2024-08-05 09:18:06 +02:00
request.rs assistant: Only push text content if not empty with image content (#16270) 2024-08-15 22:38:52 -05:00
role.rs Restructure workflow step resolution and fix inserting newlines (#15720) 2024-08-05 09:18:06 +02:00
settings.rs Implement Anthropic prompt caching (#16274) 2024-08-15 22:21:06 -05:00