-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Feat: Add assistant usage #649
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #649 +/- ##
=======================================
Coverage 98.44% 98.44%
=======================================
Files 24 24
Lines 1347 1347
=======================================
Hits 1326 1326
Misses 15 15
Partials 6 6 ☔ View full report in Codecov by Sentry. |
Thank you for the PR! |
run.go
Outdated
@@ -26,6 +26,7 @@ type Run struct { | |||
Tools []Tool `json:"tools"` | |||
FileIDS []string `json:"file_ids"` | |||
Metadata map[string]any `json:"metadata"` | |||
Usage *RunUsage `json:"usage,omitempty"` |
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'm not sure we need a separate RunUsage
type here.
Also, let's not use a pointer here, see other Usage
examples in the repo: https://github.com/search?q=repo%3Asashabaranov%2Fgo-openai%20Usage&type=code
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.
@shadowpigy and a minor change: please remove the pointer
Issue: #647