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

Hotfix/key_injection #1549

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Hotfix/key_injection #1549

merged 2 commits into from
Apr 23, 2024

Conversation

mmabrouk
Copy link
Member

Context:
We are injecting our openai key at start of the variant. Which means we are injecting it also when the user starts an app from code. This resulted in an issue in one user, where they imported openai before agenta, and ended up using our api key instead of theirs (they discovered this because they used an assistant id that did not exist in our account).

Solultion:
I removed the injection of keys at start variant. I have also made a small fix to init to make sure we first load the .env (although the requirement that the user imports agenta before openai is still required.)

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Apr 23, 2024
Copy link

vercel bot commented Apr 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
agenta ✅ Ready (Inspect) Visit Preview Apr 23, 2024 9:05am

@dosubot dosubot bot added Backend bug Something isn't working CLI labels Apr 23, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 23, 2024
@mmabrouk mmabrouk merged commit c89133b into main Apr 23, 2024
7 checks passed
@mmabrouk mmabrouk deleted the hotfix/key_injection branch April 23, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend bug Something isn't working CLI lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants