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

Move OpenAI Key to Environment Variables #905

Open
0x4007 opened this issue Dec 13, 2023 · 0 comments
Open

Move OpenAI Key to Environment Variables #905

0x4007 opened this issue Dec 13, 2023 · 0 comments

Comments

@0x4007
Copy link
Member

0x4007 commented Dec 13, 2023

I presume that the original reason why we placed the key in the config was so that we can use partner's keys for requests. If we will charge for AI powered plugins, then this is no longer necessary. Instead, we can use our own key and pay the bill from partner wallets.

We would need to first check the partner wallet balance.

  • If there is not enough, then skip the OpenAI API call and throw an error.
  • If there is, then we continue and either transfer the funds directly from their wallet, or generate a permit and claim immediately.
    • Once the funds are confirmed to have arrived, we can return the result from the plugin.
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

No branches or pull requests

1 participant