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: Throw "env vars not set" early and enhance /attach for KeyboardInterrupt (#669) #674

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

dejardim
Copy link
Contributor

Please describe the purpose of this pull request.
This pull request addresses Issue #669, which is related to CLI conveniences. It fixes the issue of environment variables not being set early and enhances the /attach command to respect KeyboardInterrupt.

How to test

  • Run memgpt configure without setting OpenAI and Azure environment variables.
  • Verify that "env vars not set" error is thrown.
  • Test the /attach command and ensure it respects KeyboardInterrupt.

Have you tested this PR?
Yes, I have tested the latest commit on this PR. The /attach command now behaves as expected, and the "env vars not set" error is thrown early during memgpt configure.

Related issues or PRs
Issue #669

Is your PR over 500 lines of code?
No, the changes are concise and do not exceed 500 lines.

@cpacker cpacker changed the title Throw "env vars not set" early and enhance /attach for KeyboardInterrupt (#669) fix: Throw "env vars not set" early and enhance /attach for KeyboardInterrupt (#669) Dec 22, 2023
@cpacker cpacker self-requested a review December 22, 2023 04:42
@cpacker cpacker linked an issue Dec 22, 2023 that may be closed by this pull request
2 tasks
@cpacker cpacker merged commit cfbec58 into letta-ai:main Dec 22, 2023
2 of 4 checks passed
cpacker added a commit that referenced this pull request Dec 22, 2023
* for openai, check for key and if missing allow user to pass it, for azure, throw error if the key isn't present

* correct prior checking of azure to be more strict, added similar checks at the embedding endpoint config stage

* forgot to override value in config before saving

* clean up the valuerrors from missing keys so that no stacktrace gets printed, make success text green to match others
sarahwooders pushed a commit that referenced this pull request Dec 26, 2023
* for openai, check for key and if missing allow user to pass it, for azure, throw error if the key isn't present

* correct prior checking of azure to be more strict, added similar checks at the embedding endpoint config stage

* forgot to override value in config before saving

* clean up the valuerrors from missing keys so that no stacktrace gets printed, make success text green to match others
norton120 pushed a commit to norton120/MemGPT that referenced this pull request Feb 15, 2024
norton120 pushed a commit to norton120/MemGPT that referenced this pull request Feb 15, 2024
* for openai, check for key and if missing allow user to pass it, for azure, throw error if the key isn't present

* correct prior checking of azure to be more strict, added similar checks at the embedding endpoint config stage

* forgot to override value in config before saving

* clean up the valuerrors from missing keys so that no stacktrace gets printed, make success text green to match others
mattzh72 pushed a commit that referenced this pull request Oct 9, 2024
* for openai, check for key and if missing allow user to pass it, for azure, throw error if the key isn't present

* correct prior checking of azure to be more strict, added similar checks at the embedding endpoint config stage

* forgot to override value in config before saving

* clean up the valuerrors from missing keys so that no stacktrace gets printed, make success text green to match others
mattzh72 added a commit that referenced this pull request Jan 16, 2025
Co-authored-by: Charles Packer <[email protected]>
Co-authored-by: dboyliao <[email protected]>
Co-authored-by: Shubham Naik <[email protected]>
Co-authored-by: Shubham Naik <[email protected]>
Co-authored-by: Caren Thomas <[email protected]>
Co-authored-by: Sarah Wooders <[email protected]>
Co-authored-by: Jyotirmaya Mahanta <[email protected]>
Co-authored-by: Stephan Fitzpatrick <[email protected]>
Co-authored-by: Stephan Fitzpatrick <[email protected]>
Co-authored-by: mlong93 <[email protected]>
Co-authored-by: Mindy Long <[email protected]>
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.

CLI conveniences
2 participants