+
    kHàjò	  ã                  ó„   € R t ^ RIHt ^ RIt^ RIHtHtHt ^ RIH	t	 ]P                  ! ]4      t ! R R]	4      tR R ltR# )	uÂ  DeepInfra video generation backend.

DeepInfra serves video over the OpenAI-compatible ``/v1/openai/videos`` endpoint (``create`` â†’ poll â†’
``download_content``), so all SDK plumbing lives in :class:`agent.video_gen_provider.OpenAICompatibleVideoGenProvider`.
This plugin only declares identity, credentials, and live model discovery â€” no hardcoded model ids, so retired
models drop out without a patch. Mirrors ``plugins/image_gen/deepinfra``.
)ÚannotationsN)ÚAnyÚDictÚList)Ú OpenAICompatibleVideoGenProviderc                  óN   € ] tR t^tRtRtRtRtRtR R lt	R R	 lt
R
 R ltRtR# )ÚDeepInfraVideoGenProviderzGText-to-video and image-to-video via DeepInfra's OpenAI-compatible API.Ú	deepinfraÚ	DeepInfraÚDEEPINFRA_API_KEYz#https://api.deepinfra.com/v1/openaic               ó   € V ^8„  d   QhRR/# )é   Úreturnzlist[dict[str, Any]]© )Úformats   "ÚI/home/ubuntu/.hermes/hermes-agent/plugins/video_gen/deepinfra/__init__.pyÚ__annotate__Ú&DeepInfraVideoGenProvider.__annotate__   s   € ÷ 	cñ 	cÐ1ñ 	có    c                ó¶  €  ^ RI Hp T! R4      ;'       g    .  Uu. uF�  q3P                  R4      '       g   K  RTR,          RTR,          P                  R4      R,          RTP                  R	/ 4      ;'       g    / P                  R
4      ;'       g    RR,          /NKƒ  	  up#   \         d#   p\        P	                  RT4       . u Rp?# Rp?ii ; iu upi )zj``video-gen``-tagged models from the live catalog; empty when unreachable (nothing beats a retired model).)Ú_fetch_deepinfra_models_by_tagz0Cannot import _fetch_deepinfra_models_by_tag: %sNz	video-genÚidÚdisplayÚ/Ú	strengthsÚmetadataÚdescriptionÚ :NéP   Néÿÿÿÿ)Úhermes_cli.modelsr   Ú	ExceptionÚloggerÚdebugÚgetÚsplit)Úselfr   ÚexcÚitems   &   r   Úlist_modelsÚ%DeepInfraVideoGenProvider.list_models   sÏ   € ð	ÝHñ <¸KÓH×NÐNÈBÐNócáN�D×S[ÑS[Ð\`×Saô`��t˜D•z 9¨d°4­j×.>Ñ.>¸sÓ.CÀBÕ.GØ §¡¨°RÓ 8× >Ð >¸B×CÑCÀMÓR×XÐXÐVXÐZ]Õ^ó`áNñcð 	cøô ô 	Ü�L‰LÐKÈSÔQØ�Iûð	üòcs4   ‚B& œC¹ACÁ;CÂCÂ&CÂ1CÃCÃCc               ó   € V ^8„  d   QhRR/# ©r   r   zdict[str, Any]r   )r   s   "r   r   r   &   s   € ÷ ]ñ ]˜nñ ]r   c                	ó:   € R RR.R. ROR. ROR^
R^RRR	R
RR
RRR^ /
# )Ú
modalitiesÚtextÚimageÚaspect_ratiosÚresolutionsÚmax_durationÚmin_durationÚsupports_audioFÚsupports_negative_promptTÚsupports_seedÚsupports_upscaleÚmax_reference_images)z16:9z9:16z1:1)Ú480pÚ720pÚ1080pr   ©r&   s   &r   ÚcapabilitiesÚ&DeepInfraVideoGenProvider.capabilities&   sK   € Ø˜v wÐ/°ÒBYÐ[hò  kDØ  N°AÐ7GÈÐPjÐlpØ Ð'9¸5ÐBXÐZ[ð]ð 	]r   c               ó   € V ^8„  d   QhRR/# r,   r   )r   s   "r   r   r   +   s   € ÷ Iñ I .ñ Ir   c                	ó$   € R RRRRRRRRR	R
RR/./# )Únamer
   ÚbadgeÚpaidÚtaguY   Wan, p-video, â€¦ â€” live catalog from api.deepinfra.com; text-to-video & image-to-videoÚenv_varsÚkeyr   ÚpromptzDeepInfra API keyÚurlz#https://deepinfra.com/dash/api_keysr   r=   s   &r   Úget_setup_schemaÚ*DeepInfraVideoGenProvider.get_setup_schema+   s@   € Ø˜ W¨fØÐrØ˜eÐ%8¸(ÐDWÐY^ð  aFð  Gð  HðIð 	Ir   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__rB   Údisplay_nameÚ_env_keyÚ_default_base_urlr)   r>   rJ   Ú__static_attributes__r   r   r   r   r      s2   † ÙQà€DØ€LØ"€HØ=Ðõ	cõ]÷
Iñ Ir   r   c               ó   € V ^8„  d   QhRR/# )r   r   ÚNoner   )r   s   "r   r   r   1   s   € ÷ Añ A�Tñ Ar   c                ó8   € V P                  \        4       4       R# )uL   Plugin entry point â€” wire ``DeepInfraVideoGenProvider`` into the registry.N)Úregister_video_gen_providerr   )Úctxs   &r   ÚregisterrZ   1   s   € à×#Ñ#Ô$=Ó$?Ö@r   )rP   Ú
__future__r   ÚloggingÚtypingr   r   r   Úagent.video_gen_providerr   Ú	getLoggerrL   r"   r   rZ   r   r   r   Ú<module>r`      s@   ðñõ #ã ß "Ñ "å Eà	×	Ò	˜8Ó	$€ôIÐ @ô I÷<Ar   