Skip to content

deryakarl/Suapp-ChatGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello SuApp World

This is my first SuApp to call the ChatGPT API with a smart contract using the SUAVE execution environment.

Dependencies

  • Geth
  • Foundry
  • Suave

Required Reading

Required Preparation

Step 1: Install SUAVE and Foundry

curl -L https://suaveup.flashbots.net | bash

curl -L https://foundry.paradigm.xyz | bash

Step 2: Set up Kettle Accounts

Make sure you set up eth accounts/ Kettle correctly so you will not suffer in silence!

Step 3: Confidential Store

Confidential Store is crucial as well to emit logs onchain which comes from off chain computation

suave-geth spell conf-request --confidential-input b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291 <your_new_contract_address>
'registerPrivateKeyOffchain()' 

your_new_contract_address is your eth address without flares <>

https://suave-alpha.flashbots.net/tutorials/confidential-store

Step 4: Deploy the Magic

forge build

use spell command to deploy your first suapp

suave-geth spell deploy Magic.sol:Magic

If you made it that far, congrats! you unlocked confidential computing onchain via suave arc.

Additonal link for tutorial: https://www.youtube.com/watch?v=jbEWroViyi8&t=2105s Big Kudos to Andy!

What's next?

I will create Private Agent locally on my computer and train on my personal data avoid PA costs and intreact with other agents onchain lol :)

Agent to Agent API era starts!

About

Calling the ChatGPT locally using SUAVE

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published