From 286ffa9297bf11cc148f5500b093f5fa41b0d695 Mon Sep 17 00:00:00 2001 From: Sarah Wooders Date: Mon, 20 Jan 2025 11:27:48 -0800 Subject: [PATCH] fix: allow no headers for `RESTClient` --- letta/client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letta/client/client.py b/letta/client/client.py index 7c824a63ea..f1508a9847 100644 --- a/letta/client/client.py +++ b/letta/client/client.py @@ -438,7 +438,7 @@ def __init__( elif password: self.headers = {"accept": "application/json", "X-BARE-PASSWORD": f"password {password}"} else: - raise ValueError("Either token or password must be provided") + self.headers = {"accept": "application/json"} if headers: self.headers.update(headers) self._default_llm_config = default_llm_config