gpt4v_formatter
Parameters:
Returns:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
gpt4v_formatter(prompt: str, img_format: str = 'uri') -> list[str | dict[str, Any]]
| 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. |