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

How to (re)create new session (a.k.a how manage sessions) ? #86

Open
liar666 opened this issue Mar 4, 2024 · 1 comment
Open

How to (re)create new session (a.k.a how manage sessions) ? #86

liar666 opened this issue Mar 4, 2024 · 1 comment
Labels
question Further information is requested

Comments

@liar666
Copy link

liar666 commented Mar 4, 2024

Hi,

When using ellama, I often get errors like:

  • ellama-ask-selection: Buffer is read-only: #<buffer ellama <question>? (<model>).org> or
  • calling deleted buffer (or something similar)

I'm probably using ellama's sessions incorrectly, but I was not able to find any documentation about what they are and how to use them, so I'm asking for help here. Sorry if it's the wrong place.

In particular, I'm looking at how to (re)create a session once it has been deleted and/or how to recover (protect against killing) a session.

Here is what I do:

1. Open (Doom)Emacs
2. Go to *(doom:)scratch* buffer
3. Write a question (e.g. "What is climate change?")
4. Select the text
5. Call ellama-ask-selection
6. (mistakenly - or not) Kill ellama's buffer (C-x k)   <- I assume error comes from one ...
7. (mistakenly - or not) Close/Kill Emacs                   <- ... of these 2 lines
8. Select the question again
9. Call ellama-ask-selection again

FYI, I'm using Emacs in client/server mode, so most of the time I just close the windows, but sometimes I need to actually kill it and restart it. <--- might it be the 3rd reason why I get the errors?

Thank in advance for any help.

@s-kostyaev
Copy link
Owner

Hi @liar666

Try M-x ellama-load-session command. It's exactly what you want.

@s-kostyaev s-kostyaev added the question Further information is requested label Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants