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

fix - benchmark for responses does not have usage field #275

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

wenzhe-log10
Copy link
Collaborator

No description provided.

@wenzhe-log10 wenzhe-log10 requested review from kxtran and nqn August 20, 2024 06:17
completion_data = res.json().get("data", {})

# skip completion if status is not finished or kind is not chat
if completion_data.get("status") != "finished" or completion_data.get("kind") != "chat":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in our api, we query for chat and completion.

Suggested change
if completion_data.get("status") != "finished" or completion_data.get("kind") != "chat":
if completion_data.get("status") != "finished" or completion_data.get("kind") != "chat" or completion_data.get("kind") != "completion":

@wenzhe-log10 wenzhe-log10 merged commit 86ca72f into main Aug 22, 2024
2 checks passed
@wenzhe-log10 wenzhe-log10 deleted the wenzhe/fix-usage-check-benchmark branch August 22, 2024 02:16
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