File: //usr/local/lib/python3.10/dist-packages/openai/cli/_api/__pycache__/image.cpython-310.pyc
o
���g� � @ s� d dl mZ d dlmZmZmZ d dlmZ ddlm Z m
Z
ddlmZm
Z
mZ ddlmZ dd lmZ er<d d
lmZ ddd�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� d�ZdS )� )�annotations)�
TYPE_CHECKING�Any�cast)�ArgumentParser� )�
get_client�print_model� )� NOT_GIVEN�NotGiven�
NotGivenOr)� BaseModel)�BufferReader)�_SubParsersAction� subparser�!_SubParsersAction[ArgumentParser]�return�Nonec C s� | � d�}|jddtd� |jddtdd� |jd d
tdd� |jd
dtddd� |jdtdd� |jtjtd� | � d�}|jddtd� |jddtdd� |jd d
tdd� |jddtddd� |jd
dtddd� |jdtdd� |jddtddd� |jtjt d� | � d�}|jddtd� |jd d
tdd� |jddtddd� |jd
dtddd� |jdtdd� |jtj
td� d S )Nzimages.generatez-mz--model)�typez-pz--promptT)r �requiredz-nz--num-images� )r �defaultz-sz--size� 1024x1024zSize of the output image)r r �helpz--response-format�url)�func�
args_modelzimages.editz-Iz--imagez@Image to modify. Should be a local path and a PNG encoded image.)r r r z-Mz--maskFz�Path to a mask image. It should be the same size as the image you're editing and a RGBA PNG image. The Alpha channel acts as the mask.zimages.create_variation)�
add_parser�add_argument�str�int�set_defaults�CLIImage�create�CLIImageCreateArgs�edit�CLIImageEditArgs�create_variation�CLIImageCreateVariationArgs)r �sub� r+ �@/usr/local/lib/python3.10/dist-packages/openai/cli/_api/image.py�register sR
��
�r- c @ �: e Zd ZU ded<