Constants::AATXT_OPENAI_VISION_MODEL, 'messages' => [ [ 'role' => 'user', 'content' => [ [ "type" => "text", "text" => $prompt ], [ "type" => "image_url", "image_url" => [ "url" => $imageUrl ] ] ] ], ], 'max_tokens' => Constants::AATXT_OPENAI_MAX_TOKENS, ]; $decodedBody = parent::decodedResponseBody($requestBody, Constants::AATXT_OPENAI_CHAT_COMPLETION_ENDPOINT); return $this->cleanString($decodedBody['choices'][0]['message']['content']); } }