Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

feat(code): embed guidelines in the code chat #122

Merged
merged 2 commits into from
Mar 11, 2024
Merged

feat(code): embed guidelines in the code chat #122

merged 2 commits into from
Mar 11, 2024

Conversation

frgfm
Copy link
Member

@frgfm frgfm commented Mar 11, 2024

This PR introduces the following modifications:

  • embed the guidelines in the system prompt for the chat
  • on the code chat route, pull the guidelines of the authenticated user before sending the request to the model
  • update the test fixture

@frgfm frgfm added this to the 0.1.0 milestone Mar 11, 2024
@frgfm frgfm self-assigned this Mar 11, 2024
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.53%. Comparing base (1539345) to head (62bc287).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #122      +/-   ##
==========================================
- Coverage   83.55%   83.53%   -0.02%     
==========================================
  Files          29       29              
  Lines         894      899       +5     
==========================================
+ Hits          747      751       +4     
- Misses        147      148       +1     
Flag Coverage Δ
unittests 83.53% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@frgfm frgfm merged commit c699719 into main Mar 11, 2024
20 checks passed
@frgfm frgfm deleted the guideline-access branch March 11, 2024 16:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant