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

feature: separate prompt for questions where no code generation is required #536

Closed
will-lynas opened this issue Sep 4, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@will-lynas
Copy link
Contributor

Feature request

Add a separate plugin prompt that does not ask LLM to generate any code.

Not sure how this would work. Different keybind to open a different type of sidebar? Multiple modes in the sidebar that can be toggled between?

Motivation

Often I find myself asking questions about the codebase without wanting any changes. The plugin prompt tends to force the LLMs to generate code even when it makes no sense to do so.

Other

No response

@will-lynas will-lynas added the enhancement New feature or request label Sep 4, 2024
@will-lynas
Copy link
Contributor Author

e.g.
image

@aarnphm
Copy link
Collaborator

aarnphm commented Sep 4, 2024

there is a ask variable in the templates,

.

So we can pass in this option in AvanteAsk similar to position=right or position=left

@aarnphm
Copy link
Collaborator

aarnphm commented Sep 4, 2024

ask = true, -- TODO: add mode without ask instruction

@will-lynas
Copy link
Contributor Author

So its set up for it, but not used at the moment?

I quite like the toggling idea, so I'll have a go at that.

Wheres a good place to display the current mode / hint to change the mode? In a floating window like the submit hint?

@aarnphm
Copy link
Collaborator

aarnphm commented Sep 4, 2024

See

local value = arg:match("position=(%w+)")
for example.

@aarnphm
Copy link
Collaborator

aarnphm commented Sep 5, 2024

#541 now support with

AvanteAsk ask=false. I will probably add a quick command AvanteChat which is an alias for this.

@aarnphm aarnphm closed this as completed Sep 5, 2024
@aarnphm
Copy link
Collaborator

aarnphm commented Sep 5, 2024

#542 add AvanteChat.

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