img_utils
autogen.agentchat.contrib.img_utils.gpt4v_formatter
gpt4v_formatter
Formats the input prompt by replacing image tags and returns a list of text and images.
Name | Description |
---|---|
prompt | The input string that may contain image tags like img ...> .Type: str |
img_format | what image format should be used. One of “uri”, “url”, “pil”. Type: str Default: ‘uri’ |
Type | Description |
---|---|
list[str | dict[str, typing.Any]] | List[Union[str, dict[str, Any]]]: A list of alternating text and image dictionary items. |