-
Notifications
You must be signed in to change notification settings - Fork 444
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
Gathering usage statistics #281
Comments
Hey @telepenin, the response object for all queries follows the openai object format which contains the tokens used for prompt and completion
Since pr-agent also uses litellm - you can also use that count cost per token and cost of the completion query. I'm happy to make a PR to integrate these, if you can explain how you'd like to call / use these |
/similar_issue |
/similar_issue |
i am closing the issue if still relevant, please re-open |
Hi,
I've enabled pr-agent (gerrit git provider) for bunch of repositories and I would like to gather some statistics.
Fields might be interesting for me: project, pull request id, action point (/review, /describe, etc.), prompts, result, tokens in, tokens out, costs.
Separately I ran my small project for review + generating improving where I'm using google sphreadsheets (via gspread) directly to store analytics info. Seems it's pretty nice to review how the project work for many multiples projects.
One more thing, pr-agent uses openai library directly, as I understand it does not provide counting tokens in, tokens out, costs for further analyse on the openai requests, but langchain does. It might be interesting as well.
The text was updated successfully, but these errors were encountered: