{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/eidolon-resource/_shared/latest--OpenAIImageUnit.json",
  "title": "OpenAIImageUnit",
  "x-lintel": {
    "source": "https://www.eidolonai.com/json_schema/v1/schemas/ImageUnit/OpenAIImageUnit.json",
    "sourceSha256": "8a0683d8d975e7e3f29e4a455fb9b9d0414ddda3c4fb0b10605738ad2260ad54"
  },
  "type": "object",
  "properties": {
    "implementation": {
      "const": "OpenAIImageUnit",
      "title": "Implementation"
    },
    "image_to_text_prompt": {
      "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.",
      "title": "Image To Text Prompt",
      "type": "string"
    },
    "text_to_image_prompt": {
      "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.",
      "title": "Text To Image Prompt",
      "type": "string"
    },
    "connection_handler": {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/eidolon-resource/_shared/latest--overview.json"
    },
    "image_to_text_model": {
      "default": "gpt-4-turbo",
      "description": "The model to use for the vision LLM.",
      "title": "Image To Text Model",
      "type": "string"
    },
    "text_to_image_model": {
      "default": "dall-e-3",
      "description": "The model to use for the vision LLM.",
      "title": "Text To Image Model",
      "type": "string"
    },
    "temperature": {
      "default": 0.3,
      "title": "Temperature",
      "type": "number"
    },
    "image_to_text_system_prompt": {
      "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.",
      "title": "Image To Text System Prompt",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "required": [
    "implementation"
  ],
  "reference_details": {
    "clz": "eidolon_ai_sdk.apu.llm.open_ai_image_unit.OpenAIImageUnit",
    "groups": [
      "LogicUnit",
      "ImageUnit"
    ],
    "name": "OpenAIImageUnit",
    "overrides": {}
  }
}
