Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to get full conversation history from a session #51

Open
domenic opened this issue Oct 24, 2024 · 0 comments
Open

Ability to get full conversation history from a session #51

domenic opened this issue Oct 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@domenic
Copy link
Collaborator

domenic commented Oct 24, 2024

Right now it's expected that the web developer keep track of previous inputs and outputs themselves; they can only get the "next" output from the model.

However, it might be useful to allow retrieving the full session-so-far from the model. An example API:

const history = await session.history();

// returns an array of { role, content } pairs

This overlaps as a feature request with #50, so if there are independent use cases besides saving to disk or transferring across contexts, please comment with them here.

@domenic domenic added the enhancement New feature or request label Oct 24, 2024
This was referenced Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant