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

feat: Updates OpenAI interactions and adds tests #28

Merged
merged 4 commits into from
Nov 7, 2023
Merged

Conversation

frgfm
Copy link
Member

@frgfm frgfm commented Nov 7, 2023

This PR introduces the following modifications:

  • updates OpenAI models
  • adds tests
  • adds safeguard for user abuse through OpenAIOpenai update

Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (8f05a7a) 84.97% compared to head (2392beb) 85.69%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #28      +/-   ##
==========================================
+ Coverage   84.97%   85.69%   +0.72%     
==========================================
  Files          27       27              
  Lines         712      727      +15     
==========================================
+ Hits          605      623      +18     
+ Misses        107      104       -3     
Flag Coverage Δ
unittests 85.69% <92.59%> (+0.72%) ⬆️

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

Files Coverage Δ
src/app/schemas/services.py 100.00% <100.00%> (ø)
src/app/services/openai.py 63.33% <100.00%> (+1.92%) ⬆️
src/app/api/api_v1/endpoints/compute.py 80.00% <0.00%> (+15.00%) ⬆️

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

@frgfm frgfm merged commit 80e62c7 into main Nov 7, 2023
10 checks passed
@frgfm frgfm deleted the openai-update branch November 7, 2023 15:15
frgfm added a commit that referenced this pull request Mar 28, 2024
…ity (#28)

* refactor: Refactored functions in util

* feat: Cleaned up project

* chore: Updates deps

* ci: Updates labeler

* fix: Fixes state update

* feat: Adds fetch when login

* refactor: Updates state vars

* refactor: Renames commands
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