From d8710a0e58bf93ada61c5c765f83916e56b83b67 Mon Sep 17 00:00:00 2001 From: Haythem Sellami <17862704+haythemsellami@users.noreply.github.com> Date: Sat, 4 May 2024 15:40:46 +0100 Subject: [PATCH] chore: update README --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index a8072c9..622f873 100644 --- a/README.md +++ b/README.md @@ -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?");