Skip to content

OpenAIImageUnit

PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ implementationNoconstNo-Implementation
- image_to_text_promptNostringNo-Image To Text Prompt
- text_to_image_promptNostringNo-Text To Image Prompt
- connection_handlerNoReference[OpenAIConnectionHandler]No--
- image_to_text_modelNostringNo-Image To Text Model
- text_to_image_modelNostringNo-Text To Image Model
- temperatureNonumberNo-Temperature
- image_to_text_system_promptNostringNo-Image To Text System Prompt

1. Property implementation

Title: Implementation

Typeconst
RequiredYes

Specific value: "OpenAIImageUnit"

2. Property image_to_text_prompt

Title: Image To Text Prompt

Typestring
RequiredNo
Default"Use the following prompt to describe the image:"

Description: The prompt to use for the conversion. The text should be very verbose and detailed.

3. Property text_to_image_prompt

Title: Text To Image Prompt

Typestring
RequiredNo
Default"Use the provided text to create an image:"

Description: The prompt to use for the conversion. The text should be very verbose and detailed.

4. Property connection_handler

TypeReference[OpenAIConnectionHandler]
RequiredNo
Default{"implementation": "OpenAIConnectionHandler"}

5. Property image_to_text_model

Title: Image To Text Model

Typestring
RequiredNo
Default"gpt-4-turbo"

Description: The model to use for the vision LLM.

6. Property text_to_image_model

Title: Text To Image Model

Typestring
RequiredNo
Default"dall-e-3"

Description: The model to use for the vision LLM.

7. Property temperature

Title: Temperature

Typenumber
RequiredNo
Default0.3

8. Property image_to_text_system_prompt

Title: Image To Text System Prompt

Typestring
RequiredNo
Default"You are an expert at answering questions about images. You are presented with an image and a question and must answer the question based on the information in the image."

Description: The system prompt to use for text to image.