
    ,:j                        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	e	      Z G 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      ee<    y)    )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                        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     U/var/www/html/tokenscope/api/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                  2     e Zd Zd fdZedd       Z xZS )APIRemovedInV1Proxyc               0    t         |           || _        y )N)r   r   _symbolr   s     r   r   zAPIRemovedInV1Proxy.__init__   s    r   c                .    t        | j                        r   )r
   r$   )r   s    r   __load__zAPIRemovedInV1Proxy.__load__   s    DLL11r   r   )r   r   )r   r   r   r   r   r&   r   r    s   @r   r"   r"      s     2 2r   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"   SYMBOLSr6   __annotations__locals__localsr    r   r   <module>rA      sy    "   &  %	=[ =
2)D/ 2, GYG 8 :F*&9HV:r   