Skip to content

genai: pass cached content in request#149

Merged
jba merged 1 commit intomainfrom
jba/cached-content-token-counts
Jun 26, 2024
Merged

genai: pass cached content in request#149
jba merged 1 commit intomainfrom
jba/cached-content-token-counts

Conversation

@jba
Copy link
Copy Markdown
Collaborator

@jba jba commented Jun 26, 2024

We weren't passing the cached content name in generation or CountTokens
requests. Fix that.

Also support cached-content token count for CountTokens requests
(not yet implemented in the service).

@jba jba requested a review from eliben June 26, 2024 13:42
@eliben
Copy link
Copy Markdown
Member

eliben commented Jun 26, 2024

Where is the "Also support cached-content token count for CountTokens requests" part of this PR?

We weren't passing the cached content name in generation or CountTokens
requests. Fix that.

Also add test for cached-content token count for CountTokens requests
(which is skipped because it's not yet implemented in the service).
@jba jba force-pushed the jba/cached-content-token-counts branch from 19e1753 to 184b61d Compare June 26, 2024 13:55
@jba
Copy link
Copy Markdown
Collaborator Author

jba commented Jun 26, 2024

Good question! It came along for free when we generated the new protos. I just added a test (which doesn't yet work). I updated the commit message.

@jba jba merged commit 205ce44 into main Jun 26, 2024
@jba jba deleted the jba/cached-content-token-counts branch June 26, 2024 13:56
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.

2 participants