-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
61 update openai client #62
Conversation
mkrueger12
commented
Jan 5, 2024
- Updated OpenAI and Cohere so the response is marshaled into each providers given response struct then into the Unified Response
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #62 +/- ##
===========================================
- Coverage 68.03% 66.14% -1.89%
===========================================
Files 11 11
Lines 463 449 -14
===========================================
- Hits 315 297 -18
- Misses 125 128 +3
- Partials 23 24 +1 ☔ View full report in Codecov by Sentry. |
} | ||
|
||
// ProviderResponse contains data from the chosen provider | ||
// ProviderResponse is the unified response from the provider. | ||
|
||
type ProviderResponse struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this one be called ModelResponse too?
// ChatChoice is a choice in a chat response. | ||
type ChatChoice struct { | ||
// OpenAI Chat Response | ||
// TODO: Should this live here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mkrueger12 I would move it under OpenAI package. api/schemas
was meant to be for Glide API schemas (e.g. unified schemas for whatever endpoints we provide).