HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/openai/lib/__pycache__/_old_api.cpython-310.pyc
o

���g��@s�UddlmZddlmZmZddlmZddlmZddl	m
Z
dZGdd	�d	e
�ZGd
d�dee�Z
gd�ZerBgZd
ed<neZe�ZeD]	Ze
ed�ee<qIdS)�)�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
cseZdZd�fdd�Z�ZS)�APIRemovedInV1�symbol�str�return�Nonecst��tj|d��dS�N�r
)�super�__init__�INSTRUCTIONS�format��selfr
��	__class__��>/usr/local/lib/python3.10/dist-packages/openai/lib/_old_api.pyrszAPIRemovedInV1.__init__�r
rrr
)�__name__�
__module__�__qualname__r�
__classcell__rrrrr	sr	cs6eZdZd�fdd�Zeddd	��Zddd
�Z�ZS)�APIRemovedInV1Proxyr
rrr
cst���||_dS�N)rr�_symbolrrrrrs

zAPIRemovedInV1Proxy.__init__rcCs|Sr r)rrrr�__load__szAPIRemovedInV1Proxy.__load__�_args�_kwargscOst|jd��r)r	r!)rr#r$rrr�__call__&szAPIRemovedInV1Proxy.__call__r)rr)r#rr$rrr)rrrrrr"r%rrrrrrs
r)�Edit�File�Audio�Image�Model�Engine�Customer�FineTune�	Embedding�
Completion�
Deployment�
Moderation�ErrorObject�
FineTuningJob�ChatCompletionz	list[str]�__all__rN)�
__future__r�typingrr�typing_extensionsr�_utilsr�_exceptionsrrr	r�SYMBOLSr5�__annotations__�locals�__localsr
rrrr�<module>s �