o
    ?HhP                     @  s~   d dl mZ d dlZd dlZddlmZmZ ddlmZ ddl	m
Z
 G dd dZdddZdddZdddZdddZdS )    )annotationsN   )OpenAI_load_client)
model_json)	BaseModelc                   @  s,   e Zd ZdZdZdZdZdZdZdZ	dZ
d	S )
Colorsz[95mz[94mz[92mz[93mz[91mz[0mz[1mz[4mN)__name__
__module____qualname__HEADEROKBLUEOKGREENWARNINGFAILENDCBOLD	UNDERLINE r   r   Q/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/openai/cli/_utils.pyr      s    r   returnr   c                   C  s   t  S )N)r   r   r   r   r   
get_client   s   r   strc                  C  s   t j} | d urd| S dS )Nz[organization={}]  )openaiorganizationformat)r   r   r   r   organization_info   s   
r   modelr   Nonec                 C  s   t jt| ddd  d S )Nr   )indent
)sysstdoutwriter   )r   r   r   r   print_model#   s   r%   boolc                  C  s$   zdd l } W dS  ty   Y dS w )Nr   FT)h2ImportError)r'   r   r   r   can_use_http2'   s   
r)   )r   r   )r   r   )r   r   r   r   )r   r&   )
__future__r   r"   r   r   r   r   _compatr   _modelsr   r   r   r   r%   r)   r   r   r   r   <module>   s    


