genai: In NewClient() c.SetGoogleClientInfo undefined (type *aiplatform.PredictionClient has no field or method SetGoogleClientInfo) #9167
Labels
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Code:
https://github.com/googleapis/google-cloud-go/blame/77c1cfac704dab6704e9b55bdd8a710695dc936a/vertexai/genai/client.go#L56
Implication:
Application does not compile as SetGoogleClientInfo() is not available in the pinned version of the Prediction client. It looks like NewClient() is attempting to call the prediction client internal
c.setGoogleClientInfo()
https://github.com/googleapis/google-cloud-go/blob/main/aiplatform/apiv1beta1/prediction_client.go#L412
Solution:
Remove the call to
c.SetGoogleClientInfo("gccl", internal.Version)
fromfunc NewClient(ctx context.Context, projectID, location string, opts ...option.ClientOption) (*Client, error) {
The text was updated successfully, but these errors were encountered: