MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / _video_temp_suffix

Method _video_temp_suffix

examples/server/server.py:10770–10774  ·  view source on GitHub ↗
(media: MediaInput)

Source from the content-addressed store, hash-verified

10768
10769 @staticmethod
10770 def _video_temp_suffix(media: MediaInput) -> str:
10771 extension = (media.format or "mp4").lstrip(".").lower()
10772 if not extension or any(not char.isalnum() for char in extension):
10773 extension = "video"
10774 return f".{extension}"
10775
10776 def _create_loaded_video_media(
10777 self,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected