-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
pn.chat.ChatAreaInput <Enter> key binding Feature Request #6575
Comments
I don't fully comprehend the The current behavior of to send follows OpenAI, MistralAI, etc. For multi-line input, use <Shift + Enter> |
I know about , and I know that is what OpenAI, etc bind to new-line. Result: I send incomplete prompts to the LLM more often than not. |
Thanks for clarifying. In that case, I'd be happy to accept and review a PR to configure it. Perhaps a param boolean to swap the order. Let me know if you're interested in contributing that PR and I can provide additional info. |
OK, I can try my hand at it. Hope I won't have to bother you with explanations about how the code works: |
Thanks! #6508 Here's a good PR to use as reference; it adds a new parameter |
Thinking about it: I'd need explanations of what was meant in the comment PR. right this moment I think there are three states: Actually, I could imagine allowing any combination of Enter, Shift-Enter, or Ctrl-Enter |
I don't think this should be considered because that's captured by I'm a tad hesitant on Ctrl-Enter because it's unclear in Mac. Right now I think it could simply be a boolean that swaps the behavior between shift + enter and enter; not entirely swayed for all the keystroke customization until Bokeh natively supports keystroke customization. |
OK, perfect. |
When working with typescript models in Panel, don't forget to properly set up your env and run |
think I got it set up right, and am running
Then
but do not see any keydown event logs?! Any idea what step I might be missing? |
Can you create a pr to see the changes |
I think I did the pr right. Really curious about why I can't see any console logs. (and why it does not yet work... :-D
|
Let me work on this some more: this might be related to the comms problem I keep having every so often: |
Completed in #6592 |
Multiline input will likely cause users to inadvertently send an incomplete prompt when typing
I would prefer having the option to bind to carriage return/line feed
and and/or be bound to
Send
This would be in line with the behavior of jupyter cells.
The text was updated successfully, but these errors were encountered: