Ë
    uPêj  ã                   óf   — d Z ddlZ ej                  dd¬«       ddlmZ ddlmZ  G d„ d	e«      Zy)
zÍ
Support for Llama API's `https://api.llama.com/compat/v1` endpoint.

Calls done in OpenAI/openai.py as Llama API is openai-compatible.

Docs: https://llama.developer.meta.com/docs/features/compatibility/
é    NÚignorezPydantic serializer warnings)Úmessage)ÚFinal)ÚOpenAIGPTConfigc            
       óH   ‡ — e Zd Zdedefˆ fd„Zdededededef
ˆ fd„Zˆ xZ	S )ÚLlamaAPIConfigÚmodelÚreturnc                 ó&   •— t         ‰| �  |«      }|S )zµ
        Llama API has limited support for OpenAI parameters

        function_call, tools, and tool_choice are working
        response_format: only json_schema is working
        )ÚsuperÚget_supported_openai_params)Úselfr	   Úoptional_paramsÚ	__class__s      €úp/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/llms/meta_llama/chat/transformation.pyr   z*LlamaAPIConfig.get_supported_openai_params   s   ø€ ô "'¡Ñ!DÀUÓ!KˆØÐó    Únon_default_paramsr   Údrop_paramsc                 ó„   •— t         ‰| �  ||||«      }d|v r(|d   j                  d«      dk7  r|j                  d«       |S )NÚresponse_formatÚtypeÚjson_schema)r   Úmap_openai_paramsÚgetÚpop)r   r   r   r	   r   Úmapped_openai_paramsr   s         €r   r   z LlamaAPIConfig.map_openai_params   sX   ø€ ô ',¡gÑ&?Ð@RÐTcÐejÐlwÓ&xÐð Ð!5Ñ5Ø$Ð%6Ñ7×;Ñ;¸FÓCÀ}ÒTà ×$Ñ$Ð%6Ô7Ø#Ð#r   )
Ú__name__Ú
__module__Ú__qualname__ÚstrÚlistr   ÚdictÚboolr   Ú__classcell__)r   s   @r   r   r      sP   ø„ ð	°ð 	¸õ 	ð$à ð$ð ð$ð ð	$ð
 ð$ð 
÷$ñ $r   r   )Ú__doc__ÚwarningsÚfilterwarningsÚtypingr   Ú+litellm.llms.openai.chat.gpt_transformationr   r   © r   r   ú<module>r+      s6   ðñó ð €× Ñ ˜Ð*HÕ Iå å Gô$�_õ $r   