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

fix: remove checks for added into db because it was truncating content #795

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

yrobla
Copy link
Contributor

@yrobla yrobla commented Jan 28, 2025

We were inserting the first chunk that came from chat, and then skipping to record the subsequent requests. But the content comes in chunks, so we were not saving all the output from llm.
Remove this flag, and instead execute an UPSERT to insert/update content if it was previously added

We were inserting the first chunk that came from chat, and then skipping
to record the subsequent requests. But the content comes in chunks, so
we were not saving all the output from llm.
Remove this flag, and instead execute an UPSERT to insert/update content
if it was previously added
@yrobla yrobla requested review from JAORMX, aponcedeleonch, jhrozek and peppescg and removed request for aponcedeleonch January 28, 2025 12:28
@yrobla yrobla merged commit 96ebe26 into main Jan 28, 2025
4 checks passed
@yrobla yrobla deleted the fix_saving_copilot_chat branch January 28, 2025 13:53
lukehinds pushed a commit that referenced this pull request Jan 31, 2025
#795)

We were inserting the first chunk that came from chat, and then skipping
to record the subsequent requests. But the content comes in chunks, so
we were not saving all the output from llm.
Remove this flag, and instead execute an UPSERT to insert/update content
if it was previously added
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.

3 participants