Files
oak-gpui/crates
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
..
2024-07-23 15:01:05 -07:00
…
2024-08-13 23:06:07 -07:00
2024-07-23 15:01:05 -07:00
…
2024-07-25 09:00:53 -06:00
2024-08-09 13:37:54 -04:00
2024-07-26 03:31:41 -04:00
2024-08-09 13:37:54 -04:00
2024-08-13 23:06:07 -07:00
2024-08-14 12:46:00 -04:00