mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-14 08:26:09 +00:00
Merge pull request #5148 from fabceolin/main
Enable follow redirects in ollama_chat
This commit is contained in:
@@ -356,6 +356,7 @@ def ollama_completion_stream(url, api_key, data, logging_obj):
|
||||
"json": data,
|
||||
"method": "POST",
|
||||
"timeout": litellm.request_timeout,
|
||||
"follow_redirects": True
|
||||
}
|
||||
if api_key is not None:
|
||||
_request["headers"] = {"Authorization": "Bearer {}".format(api_key)}
|
||||
|
||||
Reference in New Issue
Block a user