mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
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:
parent
612af8f5be
commit
589c1c6280
4 changed files with 192 additions and 29 deletions
|
@ -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 = "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue