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: fix azure credential configuration #1152

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Conversation

xavieryao
Copy link
Contributor

Please describe the purpose of this pull request.
Bug fix: Azure API cannot be properly set up.
Problems:

  • azure_version existence was checked twice, azure_api existence was not checked.
  • azure_version and azure_endpoint are not saved during configuration.
  • azure_deployment not saved if using a embedding provider different from azure.

How to test
Follow the official MemGPT document on configuring Azure OpenAI API.
Before this patch, when running memgpt configure:

  • Model selection could fail and give a wrong error message "Missing Azure key"

When running memgpt run:
Azure API calls will fail with HTTP error "unauthorized".

Have you tested this PR?
Yes.

Additional Message

https://github.com/cpacker/MemGPT/compare/main...xavieryao:MemGPT:azure_cred?expand=1#diff-ebba04859ec9cde65c68649dcd42eddc80428ca2d0de26d241bf0946210e6a30L630 seems to have no effect.

`azure_deployment` not properly stored.
Missing `azure_key` check is wrong.
@cpacker cpacker changed the title fix azure credential configuration fix: fix azure credential configuration Mar 17, 2024
Copy link
Owner

@cpacker cpacker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending tests

Thank you!

@cpacker cpacker merged commit 78abd3c into cpacker:main Mar 18, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants