Skip to content

Commit

Permalink
genai: fix text of error message (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliben authored Oct 7, 2024
1 parent 1046391 commit e7499d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genai/caching.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ type CachedContentToUpdate struct {
// All other fields of the argument CachedContent are ignored.
func (c *Client) UpdateCachedContent(ctx context.Context, cc *CachedContent, ccu *CachedContentToUpdate) (*CachedContent, error) {
if ccu == nil || ccu.Expiration == nil {
return nil, errors.New("cloud.google.com/go/vertexai/genai.UpdateCachedContent: no update specified")
return nil, errors.New("genai.UpdateCachedContent: no update specified")
}
cc2 := &CachedContent{
Name: cc.Name,
Expand Down

0 comments on commit e7499d1

Please sign in to comment.