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

Interactive chat session #111

Closed
tbckr opened this issue Sep 18, 2023 · 3 comments
Closed

Interactive chat session #111

tbckr opened this issue Sep 18, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@tbckr
Copy link
Owner

tbckr commented Sep 18, 2023

Introduce an interactive chat session mode via the "-i" flag.

This creates a shell, where one can create an answer directly. The following short commands also exist:

  • explain: this sends the conversation to openai and adds a new user chat message which instructs openai to explain the last command
  • execute: this executes the last message in a shell
@tbckr tbckr added the enhancement New feature or request label Sep 18, 2023
@tbckr
Copy link
Owner Author

tbckr commented Dec 16, 2023

Interactive session is not a priority know - issue is closed

@tbckr tbckr closed this as completed Dec 16, 2023
@ilya-bystrov
Copy link

I was also interested in a chat support and crafted a bash one-liner that does the trick.

rlwrap bash -c 'echo ▶; while read in; do [[ -n "$in" ]] && echo ■ && sgpt --chat chat_name "$in" && echo ▶; done'

A little bit more details can be found here.

Drop a comment if you have any questions!

@tbckr
Copy link
Owner Author

tbckr commented Dec 29, 2023

@ilya-bystrov This is a really cool and elegant solution - thanks for sharing!

Would you mind documenting your solution in sgpt's documentation? I would like to share it within the docs as well.

If you do not have time for this, I can do it in the next couple of weeks.

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

2 participants