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

feat: include URL location in copilot mode when sending a message #1403

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

fgalind1
Copy link
Contributor

@fgalind1 fgalind1 commented Oct 4, 2024

When using chainlit in copilot mode it is pretty useful to have the context of the current location/URL where the user is. This context may be helpful to be used for further processing the question/message by including it in the prompt

With this PR the URL is included in the metadata of the message for further processing in on_message(message: cl.Message) call

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. backend Pertains to the Python backend. frontend Pertains to the frontend. labels Oct 4, 2024
@fgalind1 fgalind1 changed the title Include URL location in copilot mode when sending a message feat: include URL location in copilot mode when sending a message Oct 7, 2024
@dokterbob dokterbob enabled auto-merge (squash) October 8, 2024 16:17
@dokterbob dokterbob merged commit 938e2eb into Chainlit:main Oct 8, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Pertains to the Python backend. frontend Pertains to the frontend. size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants