
    i	                     2    d dl mZ ddlZ	 ddZ	 ddZd Zy)   )get_user_agent    Nc                 D   |j                  d      rt        j                  |      }|d   |_         | |      }t	        |      |_        |j                  xs i }|j                         D ]  \  }}	|j                  ||	        |r|j                  d|        ||      }
|
S )Nhost)configurationX-Pinecone-API-Version	getcopydeepcopy
_base_pathr   
user_agentadditional_headersitemsset_default_header)api_client_klass	api_klassconfigopenapi_configapi_versionkwargs
api_clientextra_headerskeyvalueclients              u/var/www/catia.catastroantioquia-mas.com/valormas/lib/python3.12/site-packages/pinecone/utils/setup_openapi_client.pysetup_async_openapi_clientr      s     zz&~6$*6N!!?J*62J--3M#))+ 2
U%%c512 %%&>Lz"FM    c                 F   |j                  d      rt        j                  |      }|d   |_         | ||      }t	        |      |_        |j                  xs i }|j                         D ]  \  }	}
|j                  |	|
        |r|j                  d|        ||      }|S )Nr   )r   pool_threadsr   r	   )r   r   r   r   r!   r   r   r   r   r   r   r   s               r   setup_openapi_clientr"      s     zz&~6$*6N!!\ZJ*62J--3M#))+ 2
U%%c512 %%&>Lz"FMr   c                       fd}|S )Nc                 &    t        | ||fi |S N)r"   )r   r   r   r   r   r   r!   s       r   setup_plugin_clientz6build_plugin_setup_client.<locals>.setup_plugin_client3   s%    #i{
^d
 	
r    )r   r   r!   r&   s   ``` r   build_plugin_setup_clientr(   2   s    

 r   r%   )r   r   r   r   r"   r(   r'   r   r   <module>r)      s(    &  FJ( TX4r   