Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Notify about the number of secrets redacted since the last assistant message instead #321

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Dec 12, 2024

Copilot sends snippets as individual messages, which means that if a
user asks about a snippet, there will be [snippet, text] and even
though we had redacted the secret in snippet we wouldn't have counted
it.

Instead, let's count the secrets redacted since the last assistant (LLM) message.

…message instead

Copilot sends snippets as individual messages, which means that if a
user asks about a snippet, there will be `[snippet, text]` and even
though we had redacted the secret in snippet we wouldn't have counted
it.

Instead, let's count the secrets redacted since the last assistant (LLM) message.
@lukehinds lukehinds merged commit 28ed352 into stacklok:main Dec 12, 2024
@lukehinds lukehinds deleted the secret_num_redacted branch December 12, 2024 18:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants