mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Update litellm/llms/ollama/completion/transformation.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
bd89cbf3ac
commit
65da14e6bf
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ class OllamaConfig(BaseConfig):
|
|||
)
|
||||
# Strip /api/chat suffix if present (same logic as get_complete_url in chat/transformation.py)
|
||||
if api_base.endswith("/api/chat"):
|
||||
api_base = api_base[:-10]
|
||||
api_base = api_base[:-9]
|
||||
api_key = self.get_api_key()
|
||||
headers = {"Authorization": f"Bearer {api_key}"} if api_key else {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue