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 'cached_tokens' to API spec #342

Open
kirk-marple opened this issue Oct 3, 2024 · 0 comments
Open

Add 'cached_tokens' to API spec #342

kirk-marple opened this issue Oct 3, 2024 · 0 comments

Comments

@kirk-marple
Copy link

With the recent release of prompt caching, there are new properties for 'cached_tokens'.

"usage": {
  "prompt_tokens": 2006,
  "completion_tokens": 300,
  "total_tokens": 2306,
  "prompt_tokens_details": {
    "cached_tokens": 1920
  },
  "completion_tokens_details": {
    "reasoning_tokens": 0
  }
}

Would be good to get this added to this spec, so clients like the dotnet SDK can expose them.

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

No branches or pull requests

1 participant