Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant