refactor(azure.py): replaces the custom transport logic for just using our httpx client

Done to fix all the http/https proxy issues people are facing with proxy.
This commit is contained in:
Krrish Dholakia 2024-07-02 15:32:53 -07:00
parent 612af8f5be
commit 589c1c6280
4 changed files with 192 additions and 29 deletions

View file

@ -4815,6 +4815,12 @@ def function_to_dict(input_function): # noqa: C901
return result
def modify_url(original_url, new_path):
url = httpx.URL(original_url)
modified_url = url.copy_with(path=new_path)
return str(modified_url)
def load_test_model(
model: str,
custom_llm_provider: str = "",