suave-std
suave-std copied to clipboard
chatGPT session caching
- add
function query(bytes32 sessionId, string memory prompt)to protocols/ChatGPT.sol- append
promptto an array of prompts in confidential store, keyed/indexed bysessionId - calls
ChatGPT.completewith the previously-cached prompts in addition to the newpromptgiven in params - returns result of
ChatGPT.complete
- append
- allows user to iterate on previous queries, in-protocol
- allows developers to execute outcomes based on iteratively-generated prompts, in-protocol
Will try to work on this the next few days.