Skip to content

Commit

Permalink
Make gemini-1.5-pro-002 the default Vertex model
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 00c3cb07365a7b3a5bd755ae580008c12eeac806
  • Loading branch information
alyssachvasta authored and copybara-github committed Dec 18, 2024
1 parent b09970a commit b52fbb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ Then to log in locally run:
Summarize Seattle’s $15 Minimum Wage Conversation.

```
// Set up the tools to use Gemini Pro 1.5 and related authentication info.
// Set up the tools to use the default Vertex model (Gemini Pro 1.5) and related authentication info.
const mySensemaker = new Sensemaker({
defaultModel: new VertexModel(
"myGoogleCloudProject123,
"us-central1",
"gemini-1.5-pro-002"
),
});
Expand Down Expand Up @@ -97,7 +96,7 @@ The documentation [here](https://jigsaw-code.github.io/sensemaking-tools) is the

## Feedback

If you have questions or issues with this library please leave feedback [here](https://docs.google.com/forms/d/e/1FAIpQLSd6kScXaf0d8XR7X9mgHBgG11DJYXV1hEzYLmqpxMcDFJxOhQ/viewform?resourcekey=0-GTVtn872epNsEHtI2ClBEA) and we will reach out to you.
If you have questions or issues with this library please leave feedback [here](https://docs.google.com/forms/d/e/1FAIpQLSd6kScXaf0d8XR7X9mgHBgG11DJYXV1hEzYLmqpxMcDFJxOhQ/viewform?resourcekey=0-GTVtn872epNsEHtI2ClBEA) and we will reach out to you. Our team is actively evaluating Sensemaking performance and is aiming to share our results on this page in the future. Please note that performance results may vary depending on the model selected.

## Cloud Vertex Terms of Use

Expand Down
6 changes: 3 additions & 3 deletions src/models/vertex_model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export class VertexModel extends Model {
* Create a model object.
* @param project - the Google Cloud Project ID, not the numberic project name
* @param location - The Google Cloud Project location
* @param modelName - the name of the model to connect with, like "gemini-1.5-pro-002", see the
* full list here: https://cloud.google.com/model-garden?hl=en
* @param modelName - the name of the model from Vertex AI's Model Garden to connect with, see
* the full list here: https://cloud.google.com/model-garden
*/
constructor(project: string, location: string, modelName: string) {
constructor(project: string, location: string, modelName: string = "gemini-1.5-pro-002") {
super();
this.vertexAI = new VertexAI({
project: project,
Expand Down

0 comments on commit b52fbb0

Please sign in to comment.