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

Add types and functionality to pass through api-information about usage etc. from OpenAI #80

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

intuity-hans
Copy link

I added the option to access the information OpenAI adds to the response about total usage etc. For this I had to modify the types slightly and adjusted the example for sentiment analysis to print the amount of tokens used.

Not sure if this works with Azure instances as well, because I don't have such an instance running.

@intuity-hans
Copy link
Author

@microsoft-github-policy-service agree [company="Intuity Media Lab GmbH"]

@intuity-hans
Copy link
Author

@microsoft-github-policy-service agree company="Intuity Media Lab GmbH"

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.

1 participant