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 "Continue"? #43

Closed
billcxx opened this issue Dec 4, 2023 · 2 comments
Closed

How to "Continue"? #43

billcxx opened this issue Dec 4, 2023 · 2 comments

Comments

@billcxx
Copy link

billcxx commented Dec 4, 2023

Instead of writing to a markdown file, I tried Bito to add doxygen documentations directly to my hpp files.
The problem is the generated file is not complete. I know this is not Bito's problem, because using the same prompt and source code file in the Chatgpt will give me similar incomplete results. But in chatgpt, I can say continue and AI will continue from where it stopped. How can I achieve similar things in Bito cli?

@macky3099
Copy link
Collaborator

macky3099 commented Dec 5, 2023

Hi @billcxx, to achieve what you are looking for in Bito CLI you can make use of context.

By default Bito CLI keeps context of up to 20 requests in interactive mode (interactive mode means the one when you simply run "bito").

In non-interactive mode (which means when you run "bito -p -f" commands) you can make use of "-c" flag which will keep writing your context in a file and use it for your next request that you make.

Example: "bito -p prompt.txt -c context.txt"

(You can always edit the context size by editing the "max_context_entries" field set in your config file of Bito CLI. To access the config simply run "bito config -e").

Below are screenshots of few examples of how it can be done:

  1. This screenshots shows how you can use context for one particular item:
    Screenshot 2023-12-04 at 9 59 57 PM

  2. This screenshot has a more generic prompt (x.txt file) which can be used anywhere:
    Screenshot 2023-12-04 at 10 09 42 PM

  3. This screenshot shows how you can use it in interactive mode as well:
    Screenshot 2023-12-05 171646

Please let us know if you still face any issues. Thanks!

@macky3099
Copy link
Collaborator

Hi @billcxx, I am closing this issue for now. If you face any issues then please feel free to reopen it again. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants