Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using openai-generic, use a string as the content type in the ap…
…i request if theres no media (#988) <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Modify `role_to_message()` in `OpenAIClient` to concatenate text parts for `openai-generic` provider if all parts are text. > > - **Behavior**: > - In `role_to_message()` of `OpenAIClient`, for `openai-generic` provider, concatenate all text parts into a single string if all parts are text. > - If any part is non-text, use existing structure for `content`. > - For other providers, retain existing structure for `content`. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 31626f6. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information