Open sarahwooders opened 7 months ago
I'm seeing what appears to be the same issue on Ubuntu. using chromadb/persistent, sqlite.
Note that token utilization can skyrocket and get very expensive with this error. about $10 per crash in my case. Suggest not doing any agent reloads until this is resolved.
Facing this issue as well
This happens because verify_first_message_correctness in utils.py enforces certain checks of the1st message response. I ran into this when I told the bot my actual name and the response only includes a core_memory_append function call but no response msg.
Btw, I ran into another error "first message missing internal monologue" when I changed the question to "What is your name".
response.json = {'id': 'chatcmpl-8tc41gCUsvYXVYGVKQf3RUnI9tGcr', 'object': 'chat.completion', 'created': 1708265049,
'model': 'gpt-4-1106-preview', 'choices': [{'index': 0, 'message': {'role': 'assistant', 'content': None, 'tool_calls':
[{'id': 'call_Gmurk9bWTxDMRlM0s69peNO0', 'type': 'function', 'function': {'name': 'send_message', 'arguments':
'{"message":"Hello Chad, it\'s nice to connect with you. You can call me ANNA. How are you today?"}'}}]}, 'logprobs':
None, 'finish_reason': 'tool_calls'}], 'usage': {'prompt_tokens': 2650, 'completion_tokens': 36, 'total_tokens': 2686},
'system_fingerprint': 'fp_c3e45ce344'}
First message missing internal monologue: content=None tool_calls=[ToolCall(id='call_Gmurk9bWTxDMRlM0s69peNO0',
type='function', function=FunctionCall(arguments='{"message":"Hello Chad, it\'s nice to connect with you. You can call me
ANNA. How are you today?"}', name='send_message'))] role='assistant' function_call=None
and then hit the 10 tries limit. This is indeed very expensive.
memgpt run with the --no-verify option seems to eliminate the problem. I'm now running memgpt version 0.3.3 on python 3.11.
What is the purpose of the verification in the first place? Specifically, why does it make sure there is an internal monologue? The app does that (as stated above) also when the agent is restarted when the conversation is already mid-way. So knowing the purpose for that might help improving this and not blindly applying --no-verify on every restart.
Describe the bug I re-loaded an agent after attaching some data, but got this error immediately when running
memgpt run
again.Please describe your setup
memgpt
? (cmd.exe
/Powershell/Anaconda Shell/Terminal) ShellScreenshots