
    +h                        U d dl mZ d dlmZmZ d dlmZ ddlmZ ddl	m
Z
 dZ G d d	e
      Z G d
 dee         Zg dZerg Zded<   neZ e       ZeD ]  Z ee      ee<    y)    )annotations)TYPE_CHECKINGAny)override   )	LazyProxy)OpenAIErrora  

You tried to access openai.{symbol}, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.

You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface. 

Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28`

A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742
c                        e Zd Zd fdZ xZS )APIRemovedInV1c               L    t         |   t        j                  |             y Nsymbol)super__init__INSTRUCTIONSformatselfr   	__class__s     F/var/www/html/venv/lib/python3.12/site-packages/openai/lib/_old_api.pyr   zAPIRemovedInV1.__init__   s    ,,F,;<    r   strreturnNone)__name__
__module____qualname__r   __classcell__r   s   @r   r   r      s    = =r   r   c                  :     e Zd Zd fdZedd       ZddZ xZS )APIRemovedInV1Proxyc               0    t         |           || _        y N)r   r   _symbolr   s     r   r   zAPIRemovedInV1Proxy.__init__   s    r   c                    | S r%    )r   s    r   __load__zAPIRemovedInV1Proxy.__load__   s	    
 r   c                .    t        | j                        r   )r   r&   )r   _args_kwargss      r   __call__zAPIRemovedInV1Proxy.__call__&   s    DLL11r   r   )r   r   )r+   r   r,   r   r   r   )r   r   r   r   r   r)   r-   r    r!   s   @r   r#   r#      s!      2r   r#   )EditFileAudioImageModelEngineCustomerFineTune	Embedding
Completion
Deployment
ModerationErrorObjectFineTuningJobChatCompletionz	list[str]__all__r   N)
__future__r   typingr   r   typing_extensionsr   _utilsr   _exceptionsr	   r   r   r#   SYMBOLSr=   __annotations__locals__localsr   r(   r   r   <module>rG      sy    " % &  %	=[ =
2)C. 2 , GYG 8 :F*&9HV:r   