Ë
    tPêj#  ã                  ó4   — d Z ddlmZ ddlZddlmZmZ dd„Zy)ui  Resolve a proxy config's ``model_list`` for the Rust AI gateway.

The Rust gateway calls this once at load time (via an embedded interpreter) and
builds its own (Rust) router from the returned ``model_list``. We do NOT call
``ProxyConfig.load_config`` here: that returns a *Python* ``litellm.Router`` (not
usable from Rust) and boots the whole proxy (callbacks, cache, DB, auth) as side
effects.

Instead we reuse ``ProxyConfig.get_config`` â€” the actual config reader â€” so the
gateway inherits the same heavy lifting the proxy does: ``include:`` merging,
``os.environ/`` + secret-manager resolution, and DB-stored models (when a DB is
configured). Its only proxy-setup side effect is bringing up the configured
secret manager, which is what makes that resolution work. Returns the resolved
``model_list``; the Rust side deserializes each entry into its ``Deployment``.
é    )ÚannotationsN)ÚAnyÚFinalc                óŒ   — ddl m} t        j                   |«       j	                  | ¬«      «      }|j                  d«      xs g S )z[Load ``config_path`` via the proxy's own reader and return its
    resolved ``model_list``.r   )ÚProxyConfig)Úconfig_file_pathÚ
model_list)Úlitellm.proxy.proxy_serverr   ÚasyncioÚrunÚ
get_configÚget)Úconfig_pathr   Úconfigs      úb/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/proxy/read_model_list.pyÚread_model_listr      s9   € õ 7ä—K‘K¡£× 8Ñ 8È+Ð 8Ó VÓW€FØ�:‰:�lÓ#Ò) rÐ)ó    )r   ÚstrÚreturnzlist[dict[str, Any]])Ú__doc__Ú
__future__r   r   Útypingr   r   r   © r   r   ú<module>r      s   ðñõ  #ã ß ô*r   