Skip to content

Commit

Permalink
Merge pull request #5148 from fabceolin/main
Browse files Browse the repository at this point in the history
Enable follow redirects in ollama_chat
  • Loading branch information
krrishdholakia authored Aug 14, 2024
2 parents 1faa931 + 936b766 commit eb5f0a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions litellm/llms/ollama_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down

0 comments on commit eb5f0a8

Please sign in to comment.