content
field of an OpenAI message into a string format.Name | Description |
---|---|
content | The content to be processed. Can be a string, a list of dictionaries representing text and image URLs, or None. Type: str | list[UserMessageTextContentPart | UserMessageImageContentPart] | None |
Type | Description |
---|---|
str | str: A string representation of the input content. Image URLs are replaced with an image token. |