
    Cj                     Z    S r SSKrSSKJr  SSKJr  SSKJrJr  SSKJ	r	   " S S\	5      r
g)	z
Proxy model table model.

Canonical definition for ``litellm_proxymodeltable``. Re-exported from
``litellm.proxy._types`` for backwards compatibility.
    N)datetime)Optional)
ConfigDictmodel_validator)LiteLLMPydanticObjectBasec                   (   \ rS rSr% \\S'   \\S'   \\S'   Sr\\   \S'   Sr	\
\S'   Sr\\   \S	'   Sr\\   \S
'   Sr\\   \S'   Sr\\   \S'   \" SS9r\" SS9\S 5       5       r\S\
4S j5       r\S\\   4S j5       r\S\\   4S j5       rSrg)LiteLLM_ProxyModelTable   model_id
model_namelitellm_paramsN
model_infoFblocked
created_at
created_by
updated_at
updated_by )protected_namespacesbefore)modec                 x   [        UR                  S5      [        5      (       a   [        R                  " US   5      US'   [        UR                  S5      [        5      (       a   [        R                  " US   5      US'   U$ U$ ! [        R
                   a     N[f = f! [        R
                   a     U$ f = f)Nr   r   )
isinstancegetstrjsonloadsJSONDecodeError)clsvaluess     f/home/rurouni/.local/share/pipx/venvs/strix-agent/lib/python3.13/site-packages/litellm/models/model.pycheck_potential_json_str0LiteLLM_ProxyModelTable.check_potential_json_str   s     fjj!12C88+/::f=M6N+O'( fjj.44'+zz&2F'G|$ v '' 
 '' s#   B 'B! BB!B98B9returnc                     U R                   $ )N)r   selfs    r!   
is_blocked"LiteLLM_ProxyModelTable.is_blocked-   s    ||    c                 \    U R                   (       a  U R                   R                  S5      $ g )Nteam_idr   r   r&   s    r!   r,   LiteLLM_ProxyModelTable.team_id1   s!    ????&&y11r*   c                 \    U R                   (       a  U R                   R                  S5      $ g )Nteam_public_model_namer-   r&   s    r!   r0   .LiteLLM_ProxyModelTable.team_public_model_name7   s"    ????&&'?@@r*   )__name__
__module____qualname____firstlineno__r   __annotations__dictr   r   r   boolr   r   r   r   r   r   model_configr   classmethodr"   propertyr(   r,   r0   __static_attributes__r   r*   r!   r	   r	      s    MO!%J%GT%)J") $J$%)J") $J$26L(#  $ D   #  
   r*   r	   )__doc__r   r   typingr   pydanticr   r   litellm.types.llms.baser   r	   r   r*   r!   <module>rA      s(       0 =*7 *r*   