suave-std icon indicating copy to clipboard operation
suave-std copied to clipboard

chatGPT session caching

Open zeroXbrock opened this issue 1 year ago • 1 comments

  • add function query(bytes32 sessionId, string memory prompt) to protocols/ChatGPT.sol
    • append prompt to an array of prompts in confidential store, keyed/indexed by sessionId
    • calls ChatGPT.complete with the previously-cached prompts in addition to the new prompt given in params
    • returns result of ChatGPT.complete
  • allows user to iterate on previous queries, in-protocol
  • allows developers to execute outcomes based on iteratively-generated prompts, in-protocol

zeroXbrock avatar Apr 23 '24 22:04 zeroXbrock

Will try to work on this the next few days.

haythemsellami avatar Apr 26 '24 15:04 haythemsellami