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

Refine caching non-copilot FIM calls #392

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

aponcedeleonch
Copy link
Contributor

Closes: #376

We were using the whole content of the prompt to hash the requests that doesn't come from copilot. This is inefficient since the prompt between requests can vary quite a lot. Instead use the filepath included in every request. After some investigation, copilot puts the filepath at the top of the prompt while the rest of the providers include the filepath at the bottom of the context section.

Closes: #376

We were using the whole content of the prompt to hash the requests
that doesn't come from copilot. This is inefficient since the prompt
between requests can vary quite a lot. Instead use the filepath included
in every request. After some investigation, `copilot` puts the
filepath at the top of the prompt while the rest of the providers
include the filepath at the bottom of the context section.
@aponcedeleonch aponcedeleonch merged commit 576c97b into main Dec 17, 2024
3 checks passed
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.

Refine the way of creating the hash for caching FIM entries
2 participants