-
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
🔧 #161: Refined the chat stream req/responses #179
Conversation
… finish reason field & added metadata to stream chat response
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #179 +/- ##
===========================================
+ Coverage 66.61% 66.68% +0.07%
===========================================
Files 70 70
Lines 3082 3119 +37
===========================================
+ Hits 2053 2080 +27
- Misses 925 934 +9
- Partials 104 105 +1 ☔ View full report in Codecov by Sentry. |
@@ -17,7 +17,7 @@ func NewChatFromStr(message string) *ChatRequest { | |||
Message: ChatMessage{ | |||
"human", |
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.
I think this needs to be "user" instead of "human"
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.
Since all providers take "user" as input in request schema
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.
I see yeah it makes sense to change that. However, it makes almost no effect as it's used in tests only to mock request schema. I will take care of this in a followup PR 👀
func NewChatStreamFromStr(message string) *ChatStreamRequest { | ||
return &ChatStreamRequest{ | ||
Message: ChatMessage{ | ||
"human", |
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 be "user" instead of human"
Changes