We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
Cannot use anthropic publisher and others (except google)
anthropic
google
// GenerativeModel creates a new instance of the named model. func (c *Client) GenerativeModel(name string) *GenerativeModel { return &GenerativeModel{ c: c, name: name, fullName: fmt.Sprintf("projects/%s/locations/%s/publishers/google/models/%s", c.projectID, c.location, name), } }
Describe the solution you'd like
type options struct { cloudProject string cloudLocation string publisher string defaultModel string defaultEmbeddingModel string defaultCandidateCount int defaultMaxTokens int defaultTemperature float64 defaultTopK int defaultTopP float64 }
func WithPublisher(p string) Option { return func(opts *options) { opts.publisher = p } }
func NewClient(ctx context.Context, projectID, location, publisher string, opts ...option.ClientOption) (*Client, error)
// A Client is a Google Vertex AI client. type Client struct { c *aiplatform.PredictionClient projectID string location string publisher string }
// GenerativeModel creates a new instance of the named model. func (c *Client) GenerativeModel(name string) *GenerativeModel { return &GenerativeModel{ c: c, name: name, fullName: fmt.Sprintf("projects/%s/locations/%s/publishers/%s/models/%s", c.projectID, c.location, c.publisher, name), } }
Additional context vertexai library version : 0.7.1
The text was updated successfully, but these errors were encountered:
To me it makes more sense to make this make this part of the model configuration, not the client.
eg.
func (c *Client) GenerativeModel(publisher, name string) *GenerativeModel { return &GenerativeModel{ c: c, name: name, fullName: fmt.Sprintf("projects/%s/locations/%s/publishers/%s/models/%s", c.projectID, c.location, publisher, name), } }
Sorry, something went wrong.
Any progress/plans to share?
We're looking at options to support this, and tuned models. Stay tuned
@minikomi @ryan-swit would the change in #10197 work for you?
feat(vertexai): support model garden and tuned models names (#10197)
d481e0e
Re #9630
eliben
jba
No branches or pull requests
Is your feature request related to a problem? Please describe.
Cannot use
anthropic
publisher and others (exceptgoogle
)Describe the solution you'd like
Additional context
vertexai library version : 0.7.1
The text was updated successfully, but these errors were encountered: