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

Show details for query tokens #1392

Merged
merged 18 commits into from
Jul 4, 2024
Merged

Conversation

Dev-Khant
Copy link
Collaborator

@Dev-Khant Dev-Khant commented Jun 8, 2024

Description

Show cost and total tokens used for query inputs to paid LLMs.

Fixes #574 #853

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • Documentation update

How Has This Been Tested?

  • Unit Test
  • Test Script (please provide)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Maintainer Checklist

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Made sure Checks passed

@Dev-Khant Dev-Khant marked this pull request as ready for review June 9, 2024 12:19
Copy link
Collaborator

@deshraj deshraj left a comment

Choose a reason for hiding this comment

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

LGTM!

@deshraj deshraj merged commit 4880557 into mem0ai:main Jul 4, 2024
3 checks passed
@parshvadaftari parshvadaftari mentioned this pull request Jul 5, 2024
13 tasks
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.

🗼 Feature request: OpenAI tokens usage information returned in add and query methods.
2 participants