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: check response usage is not None #1599

Merged
merged 2 commits into from
Feb 8, 2024
Merged

Conversation

olgavrou
Copy link
Member

@olgavrou olgavrou commented Feb 8, 2024

Why are these changes needed?

usage in response is Optional but we never check if it is there, so this fixes that

Related issue number

resolves #1579

Checks

@sonichi sonichi added this pull request to the merge queue Feb 8, 2024
Merged via the queue into microsoft:main with commit 58d77bc Feb 8, 2024
43 of 53 checks passed
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
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.

'NoneType' object has no attribute 'prompt_tokens'
3 participants