Open Gavinmine opened 4 months ago
Looks like the response format doesn't correct, there is not any function_call or tool_calls. It cannot pass the "verify_first_message_correctness" so it will keep retrying until LLM response with null candidates.
{'candidates': [{'content': {'parts': [{'text': " Is there anything else you'd like to tell me about yourself?"}], 'role': 'model'}, 'finishReason': 'STOP',
'index': 0, 'safetyRatings': [{'category': 'HARM_CATEGORY_SEXUALLY_EXPLICIT', 'probability': 'NEGLIGIBLE'}, {'category': 'HARM_CATEGORY_HATE_SPEECH', 'probability': 'NEGLIGIBLE'},
{'category': 'HARM_CATEGORY_HARASSMENT', 'probability': 'NEGLIGIBLE'}, {'category': 'HARM_CATEGORY_DANGEROUS_CONTENT', 'probability': 'NEGLIGIBLE'}]}], 'usageMetadata':
{'promptTokenCount': 3964, 'candidatesTokenCount': 14, 'totalTokenCount': 3978}}
Describe the bug It runs into KeyError: 'candidates' if I try use existing agent
Please describe your setup
pip install pymemgpt
?memgpt
?Screenshots
Additional context I try to use existing agent with same human and persona, and it runs into KeyError: 'candidates' after I hit enter to begin. it works well if I setup with new agent.
MemGPT Config Please attach your
~/.memgpt/config
file or copy past it below.