mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
Follow redirects
This commit is contained in:
parent
f4355d3e88
commit
936b76662f
1 changed files with 1 additions and 0 deletions
|
@ -356,6 +356,7 @@ def ollama_completion_stream(url, api_key, data, logging_obj):
|
||||||
"json": data,
|
"json": data,
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"timeout": litellm.request_timeout,
|
"timeout": litellm.request_timeout,
|
||||||
|
"follow_redirects": True
|
||||||
}
|
}
|
||||||
if api_key is not None:
|
if api_key is not None:
|
||||||
_request["headers"] = {"Authorization": "Bearer {}".format(api_key)}
|
_request["headers"] = {"Authorization": "Bearer {}".format(api_key)}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue