Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: fix `Unsupport authentication type` error for Ollama (#2018)
Sarah Wooders4f30288c14c8
diff --git a/letta/local_llm/utils.py b/letta/local_llm/utils.pyindex 2b2c153b4..a53811598 100644--- a/letta/local_llm/utils.py+++ b/letta/local_llm/utils.py@@ -18,7 +18,7 @@ def post_json_auth_request(uri, json_payload, auth_type, auth_key):"""Send a POST request with a JSON payload and optional authentication"""# By default most local LLM inference servers do not have authorization enabled- if auth_type is None:+ if auth_type is None or auth_type == "":response = requests.post(uri, json=json_payload)# Used by OpenAI, together.ai, Mistral AI