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?");