Skip to content

Commit

Permalink
genai: set genai-go in header (#102)
Browse files Browse the repository at this point in the history
Add genai-go/VERSION to the x-goog-api-client header.
Following the Python client, the version is not prefixed with a 'v'.
  • Loading branch information
jba committed May 7, 2024
1 parent eb525f4 commit 95c6fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genai/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Import the option package as "google.golang.org/api/option".`)
if err != nil {
return nil, err
}
c.SetGoogleClientInfo("gccl", "v"+internal.Version)
c.SetGoogleClientInfo("gccl", "v"+internal.Version, "genai-go", internal.Version)
return &Client{c, mc, fc, ds}, nil
}

Expand Down

0 comments on commit 95c6fea

Please sign in to comment.