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

Think about prompt caching #107

Open
hadley opened this issue Oct 9, 2024 · 1 comment
Open

Think about prompt caching #107

hadley opened this issue Oct 9, 2024 · 1 comment

Comments

@hadley
Copy link
Member

hadley commented Oct 9, 2024

Will need to add a third category to tokens to record number of cached input tokens.

@hadley
Copy link
Member Author

hadley commented Oct 31, 2024

  • If caching not support, give a message (and if needed a user can use suppressMessages()
  • Need to think about how tools get cached too
  • Especially for gemini where if you change the tools after you have cache the content, the cache will be invalid.

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