Ë
    uPêjÊ  ã                   óœ   — d dl mZmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 erd dlmZ ddlmZ dd	lmZ eZeZeZneZeZeZ G d
„ de«      Zy)é    )ÚTYPE_CHECKINGÚAny)ÚBaseAzureLLM)ÚOpenAIVideoConfig)ÚGenericLiteLLMParams)Ú VideoCreateOptionalRequestParams)ÚLoggingé   )ÚBaseLLMException)ÚBaseVideoConfigc                   ó–   ‡ — e Zd ZdZˆ fd„Zdedefd„Zdedede	de
fd„Z	 	 dd
e
deded	z  ded	z  de
f
d„Zdeded	z  de
defd„Zˆ xZS )ÚAzureVideoConfigz:
    Configuration class for OpenAI video generation.
    c                 ó"   •— t         ‰| �  «        y )N)ÚsuperÚ__init__)ÚselfÚ	__class__s    €úm/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/llms/azure/videos/transformation.pyr   zAzureVideoConfig.__init__   s   ø€ Ü‰ÑÕó    ÚmodelÚreturnc                 ó
   — g d¢S )zS
        Get the list of supported OpenAI parameters for video generation.
        )r   ÚpromptÚinput_referenceÚsecondsÚsizeÚuserÚextra_headers© )r   r   s     r   Úget_supported_openai_paramsz,AzureVideoConfig.get_supported_openai_params   s   € ò
ð 	
r   Úvideo_create_optional_paramsÚdrop_paramsc                 ó   — t        |«      S )z:No mapping applied since inputs are in OpenAI spec already)Údict)r   r!   r   r"   s       r   Úmap_openai_paramsz"AzureVideoConfig.map_openai_params-   s   € ô Ð0Ó1Ð1r   NÚheadersÚapi_keyÚlitellm_paramsc                 ór   — |€
t        «       }|r|j                  s||_        t        j                  ||¬«      S )zº
        Validate Azure environment and set up authentication headers.
        Uses _base_validate_azure_environment to properly handle credentials from litellm_credential_name.
        )r&   r(   )r   r'   r   Ú _base_validate_azure_environment)r   r&   r   r'   r(   s        r   Úvalidate_environmentz%AzureVideoConfig.validate_environment6   s;   € ð Ð!Ü1Ó3ˆNá˜>×1Ò1Ø%,ˆNÔ"ô
 ×<Ñ<ÀWÐ]kÔlÐlr   Úapi_basec                 ó4   — t        j                  ||dd¬«      S )z@
        Constructs a complete URL for the API request.
        z/openai/v1/videosÚ )r,   r(   ÚrouteÚdefault_api_version)r   Ú_get_base_azure_url)r   r   r,   r(   s       r   Úget_complete_urlz!AzureVideoConfig.get_complete_urlM   s#   € ô ×/Ñ/ØØ)Ø%Ø "ô	
ð 	
r   )NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚstrÚlistr    r   Úboolr$   r%   r   r+   r2   Ú__classcell__)r   s   @r   r   r      sÆ   ø„ ñôð
°ð 
¸ó 
ð2à&Fð2ð ð2ð ð	2ð
 
ó2ð #Ø6:ñmàðmð ðmð �t‘ð	mð
 -¨tÑ3ðmð 
ómð.
àð
ð ˜‘*ð
ð ð	
ð
 
÷
r   r   N)Útypingr   r   Úlitellm.llms.azure.common_utilsr   Ú)litellm.llms.openai.videos.transformationr   Úlitellm.types.routerr   Úlitellm.types.videos.mainr   Ú*litellm.litellm_core_utils.litellm_loggingr	   Ú_LiteLLMLoggingObjÚbase_llm.chat.transformationr   Ú_BaseLLMExceptionÚbase_llm.videos.transformationr   Ú_BaseVideoConfigÚLiteLLMLoggingObjr   r   r   r   ú<module>rG      sQ   ðß %å 8Ý GÝ 5Ý FáÝXåUÝUà*ÐØ&€OØ(ÑàÐØ€OØÐôD
Ð(õ D
r   