TypeChat icon indicating copy to clipboard operation
TypeChat copied to clipboard

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

Open intuity-hans opened this issue 1 year ago • 2 comments

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 avatar Jul 31 '23 09:07 intuity-hans

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

intuity-hans avatar Jul 31 '23 15:07 intuity-hans

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

intuity-hans avatar Jul 31 '23 15:07 intuity-hans