From 3b28d74cabebeb2137b5da752fbe01930ca99862 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 7c824a63..f1508a98 100644 --- a/letta/client/client.py +++ b/letta/client/client.py @@ -438,7 +438,7 @@ class RESTClient(AbstractClient): 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