Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Better errors on over length persona/human files #695

Merged
merged 1 commit into from
Dec 25, 2023

Conversation

cpacker
Copy link
Collaborator

@cpacker cpacker commented Dec 25, 2023

Please describe the purpose of this pull request.

Before:

% memgpt run --persona too_long

🧬 Creating new agent...
->  🤖 Using persona profile 'too_long'
->  🧑 Using human profile 'cs_phd'
🎉 Created new agent 'agent_4'

Traceback (most recent call last):
...
ValueError: Edit failed: Exceeds 2000 character limit (requested 22073). Consider summarizing existing core memories in 'persona' and/or moving lower priority content to archival memory to free up space in core memory, then trying again.

After:

 % memgpt run --persona too_long

🧬 Creating new agent...
->  🤖 Using persona profile 'too_long'
->  🧑 Using human profile 'cs_phd'
Failed to create agent from provided information:
Contents of too_long.txt is over the character limit (22073 > 2000)

…ated the CLI error dump to look prettier (eg on over length errors)
@cpacker cpacker merged commit 10840fc into main Dec 25, 2023
3 checks passed
@cpacker cpacker deleted the better-overlimit-file-error branch December 25, 2023 07:05
sarahwooders pushed a commit that referenced this pull request Dec 26, 2023
…ated the CLI error dump to look prettier (eg on over length errors) (#695)
@cpacker cpacker mentioned this pull request Dec 27, 2023
6 tasks
norton120 pushed a commit to norton120/MemGPT that referenced this pull request Feb 15, 2024
…ated the CLI error dump to look prettier (eg on over length errors) (letta-ai#695)
mattzh72 pushed a commit that referenced this pull request Oct 9, 2024
…ated the CLI error dump to look prettier (eg on over length errors) (#695)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant