-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
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
feat(aiplatform): code chat sample for Vertex LLMs #3258
Conversation
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
|
||
// Specifies the location of the api endpoint | ||
const clientOptions = { | ||
apiEndpoint: 'us-central1-aiplatform.googleapis.com', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this always the same endpoint? Or should it be based on the location, e.g. location + '-aiplatform.googleapis.com'
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, currently only us-central1 is supported.
cwd, | ||
} | ||
); | ||
assert.match(stdout, /Get code chat response/); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider matching on Prediction :
to ensure a prediction is actually returned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're planning to implement a solution to have a structured way to process and validate the prediction results. We will make the change once the solution is ready. Thanks.
Description
Fixes b279595025
Add a code chat sample for Vertex LLMs.
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
npm test
(see Testing)npm run lint
(see Style)