
    U th                        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<   dS )    )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 )APIRemovedInV1symbolstrreturnNonec               |    t                                          t                              |                     d S Nr   )super__init__INSTRUCTIONSformatselfr   	__class__s     g/var/www/html/mycamper/aliexpress-site/backend/venv/lib/python3.11/site-packages/openai/lib/_old_api.pyr   zAPIRemovedInV1.__init__   s2    ,,F,;;<<<<<    r   r   r   r   )__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 )APIRemovedInV1Proxyr   r   r   r   c               V    t                                                       || _        d S N)r   r   _symbolr   s     r   r   zAPIRemovedInV1Proxy.__init__   s$    r   r   c                    | S r%    )r   s    r   __load__zAPIRemovedInV1Proxy.__load__   s	    
 r   _args_kwargsc                ,    t          | j                  r   )r   r&   )r   r*   r+   s      r   __call__zAPIRemovedInV1Proxy.__call__&   s    DL1111r   r   )r   r   )r*   r   r+   r   r   r   )r   r   r   r   r   r)   r-   r    r!   s   @r   r#   r#      sq                 X2 2 2 2 2 2 2 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      s<   " " " " " " " % % % % % % % % & & & & & &       % % % % % %	= = = = =[ = = =
2 2 2 2 2)C. 2 2 2   ,  GG 688 : :F**&999HV: :r   