Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.
This repository was archived by the owner on May 12, 2025. It is now read-only.

chatGPT session caching #79

@zeroXbrock

Description

@zeroXbrock
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions