This repository contains the Next.js implementation of ProxyAI, leverages Wormhole for cross-chain authorization and payments for AI services. The controller (target) chain is already deployed on Celo and the web-app router sends requests to the controller from the Fuji testnet.
To interact with this app, you'll need to fund your Metamask wallet with at least 0.1 Testnet AVAX. You can obtain free testnet AVAX from Faucets.
-
Deploy your Custom Router
-
Top up your Wallet with Mock USDC Token
- Add mock USDC tokens to your account to pay for services.
-
Register your Wallet as your Router's Admin
- Sign the
Register Admintransaction to register your account as the admin for your custom router.
- Sign the
-
Top up Router’s USDC Tank for Request Payments
- Sign the following transactions to ensure your router can pay for requests:
Approvaltransaction for the router to spend your USDC.Deposittransaction to add USDC to the router’s balance.
- Sign the following transactions to ensure your router can pay for requests:
-
Submit a Prompt to the GPT API
- After funding your router, you can submit prompts to the GPT API by signing the following transactions:
GenerateKeytransaction to create a session key.Submit Receipttransaction to confirm the submission.
- After funding your router, you can submit prompts to the GPT API by signing the following transactions: