Skip to content

Commit

Permalink
chore: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
haythemsellami committed May 4, 2024
1 parent 12b6a5c commit d8710a0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,8 @@ import "suave-std/protocols/ChatGPT.sol";
contract Example {
function example() public {
//retreive the apiKey
bytes memory keyData = Suave.confidentialRetrieve(apiKeyRecord, API_KEY);
string memory apiKey = bytesToString(keyData);
ChatGPT chatgpt = new ChatGPT();
string memory apiKey = "xxxx-xx" // in production, use confidential store
ChatGPT.Message[] memory messages = new ChatGPT.Message[](1);
messages[0] = ChatGPT.Message(ChatGPT.Role.User, "How do I write a Suapp with suave-std?");
Expand Down

0 comments on commit d8710a0

Please sign in to comment.