jupyter-ai icon indicating copy to clipboard operation
jupyter-ai copied to clipboard

no chat history while using %ai in cells

Open fotisj opened this issue 1 year ago • 2 comments
trafficstars

When I use %%ai chatgpt in a cell to ask a question and then ask a follow up question in the next cell, there is no memory of my first question and the answer to it. In short, it seems there is no chat history using %%ai in cells.

For example:

[5] %%ai chatgpt
     Here is a sentence: "Green is the color of my house." What word class is the first word?  

[5] The word 'Green' is an adjective

[6] %%ai chatgpt
     What word class is the second word? 
     
[6] The second word is a noun.

At the moment the documentation doesn't explicitly tell the user that there is no chat history using cell magic, so most people will assume there is a chat history. From this perspective it is a bug. And I think it would be very useful to have a chat history also in the cells.

fotisj avatar May 14 '24 11:05 fotisj

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

welcome[bot] avatar May 14 '24 11:05 welcome[bot]

This was previously supported, but only for OpenAI chat models, and it was removed in #551 when we upgraded to a newer version of the OpenAI provider. If we reintroduce this feature, we should make it work with as many model providers as possible.

JasonWeill avatar May 16 '24 16:05 JasonWeill

Duplicate of https://github.com/jupyterlab/jupyter-ai/issues/392?

krassowski avatar May 22 '24 10:05 krassowski

Closing in favor of #392.

JasonWeill avatar May 22 '24 16:05 JasonWeill