o
    ­"´iÈ  ã                   @   s¼   d dl Z e je je eef Ze jee je je ef e je je ee je f e je je ee je e jeef f f Z	de j
ee je	e je	 f f de je jee	f  fdd„ZdS )é    NÚdÚreturnc                 C   sL   g }|   ¡ D ]\}}t|tƒr|D ]	}| ||f¡ qq| ||f¡ q|S )aE  
    The format we use is a list of tuples, where the first element is the
    name of the file and the second is the file object. Typically HTTPX wants
    a dict, but to be able to send lists of files, you have to use the list
    approach (which also works for non-lists)
    https://github.com/encode/httpx/pull/1032
    )ÚitemsÚ
isinstanceÚlistÚappend)r   Úhttpx_tuplesÚkeyÚ	file_likeÚfile_like_item© r   úX/var/www/html/voicebot/backend/venv/lib/python3.10/site-packages/elevenlabs/core/file.pyÚ!convert_file_dict_to_httpx_tuples   s   
ÿr   )ÚtypingÚUnionÚIOÚbytesÚstrÚFileContentÚTupleÚOptionalÚMappingÚFileÚDictÚListr   r   r   r   r   Ú<module>   s   &úþÿþ