You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
when I try to use letta-free model it returns error:
"requests.exceptions.HTTPError: HTTP error occurred: 500 Server Error: Internal Server Error for url: https://inference.memgpt.ai/chat/completions | Status code: 500, Message: {"detail":"Internal server error (unpack): "}
"
When I try to use gpt4o model it returns error:
httpx_sse._exceptions.SSEError: Expected response header Content-Type to contain 'text/event-stream', got 'application/json'
Please describe your setup
How did you install letta?
pip install letta
Describe your setup
What's your OS (Windows/MacOS/Linux)?
MacOS
How are you running letta? (cmd.exe/Powershell/Anaconda Shell/Terminal)
Terminal
Letta Config
Please attach your ~/.letta/config file or copy paste it below.
[defaults]
preset = memgpt_chat
persona = sam_pov
human = basic
[archival_storage]
type = sqlite
path = /Users/user/.letta
[recall_storage]
type = sqlite
path = /Users/user/.letta
[metadata_storage]
type = sqlite
path = /Users/user/.letta
[version]
letta_version = 0.6.7
The text was updated successfully, but these errors were encountered:
I have been also facing this issue for a couple of days now. After debugging I realized that this happens when one of the messages sent on the make_post_request doesn't have any tool_calls. Here is the patch way to solve it for now. I hope someone has a better solution but atleast this solves the unpack error for now. Here is the updated function
defmake_post_request(url: str, headers: dict[str, str], data: dict[str, Any]) ->dict[str, Any]:
printd(f"Sending request to {url}")
try:
cleaned_messages= []
formessageindata.get("messages", []):
role=message.get("role")
tool_calls=message.get("tool_calls")
ifrole=="assistant"andnottool_calls:
continueelse:
cleaned_messages.append(message)
data["messages"] =cleaned_messages# Make the POST requestresponse=requests.post(url, headers=headers, json=data)
printd(f"Response status code: {response.status_code}")
Describe the bug
when I try to use letta-free model it returns error:
"requests.exceptions.HTTPError: HTTP error occurred: 500 Server Error: Internal Server Error for url: https://inference.memgpt.ai/chat/completions | Status code: 500, Message: {"detail":"Internal server error (unpack): "}
"
When I try to use gpt4o model it returns error:
httpx_sse._exceptions.SSEError: Expected response header Content-Type to contain 'text/event-stream', got 'application/json'
Please describe your setup
pip install letta
What's your OS (Windows/MacOS/Linux)?
MacOS
How are you running
letta
? (cmd.exe
/Powershell/Anaconda Shell/Terminal)Terminal
Letta Config
Please attach your
~/.letta/config
file or copy paste it below.[defaults]
preset = memgpt_chat
persona = sam_pov
human = basic
[archival_storage]
type = sqlite
path = /Users/user/.letta
[recall_storage]
type = sqlite
path = /Users/user/.letta
[metadata_storage]
type = sqlite
path = /Users/user/.letta
[version]
letta_version = 0.6.7
The text was updated successfully, but these errors were encountered: