ZIm/crates/language_model
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
..
src assistant: Only push text content if not empty with image content (#16270) 2024-08-15 22:38:52 -05:00
Cargo.toml Copy/paste images into editors (Mac only) (#15782) 2024-08-13 13:18:25 -04:00
LICENSE-GPL Extract completion provider crate (#14823) 2024-07-19 13:35:34 -04:00