o
    Cji                     @  s   U d dl mZ d dlmZ d dlmZ ddlmZ ddlm	Z	 dZ
G dd	 d	e	ZG d
d ded Zg dZer@g Zded< neZe ZeD ]	Zeedee< qGdS )    )annotations)TYPE_CHECKING)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                      s   e Zd Zd fddZ  ZS )APIRemovedInV1symbolstrreturnNonec                  s   t  tj|d d S Nr	   )super__init__INSTRUCTIONSformatselfr	   	__class__ j/var/www/html/Resume-Parser/resume-parser-inhouse/venv/lib/python3.10/site-packages/openai/lib/_old_api.pyr      s   zAPIRemovedInV1.__init__r	   r
   r   r   )__name__
__module____qualname__r   __classcell__r   r   r   r   r      s    r   c                      s,   e Zd Zd	 fddZed
ddZ  ZS )APIRemovedInV1Proxyr	   r
   r   r   c                  s   t    || _d S )N)r   r   _symbolr   r   r   r   r      s   

zAPIRemovedInV1Proxy.__init__c                 C  s   t | jdr   )r   r   )r   r   r   r   __load__   s   zAPIRemovedInV1Proxy.__load__r   )r   r   )r   r   r   r   r   r    r   r   r   r   r   r      s    r   N)EditFileAudioImageModelEngineCustomerFineTune	Embedding
Completion
Deployment
ModerationErrorObjectFineTuningJobChatCompletionz	list[str]__all__r   )
__future__r   typingr   typing_extensionsr   _utilsr   _exceptionsr   r   r   r   SYMBOLSr0   __annotations__locals__localsr	   r   r   r   r   <module>   s     
