Skip to content
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

Merged
merged 3 commits into from
Feb 8, 2024
Merged

Conversation

shadowpigy
Copy link
Contributor

Issue: #647

Copy link

codecov bot commented Feb 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (06ff541) 98.44% compared to head (0bf19ca) 98.44%.
Report is 4 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@sashabaranov
Copy link
Owner

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"`
Copy link
Owner

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

Copy link
Owner

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

run.go Outdated Show resolved Hide resolved
@sashabaranov sashabaranov merged commit a7954c8 into sashabaranov:master Feb 8, 2024
3 checks passed
@shadowpigy shadowpigy deleted the dev branch May 16, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants