Skip to content

Commit

Permalink
fix: allow no headers for RESTClient (#2361)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahwooders authored Jan 20, 2025
2 parents 204d62a + 286ffa9 commit 1d1566e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion letta/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d1566e

Please sign in to comment.