Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions loadGitHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ const branch = process.argv[3] || "main"
const gitHubAccessToken = process.env.GITHUB_ACCESS_TOKEN || ""

const project = 'PROJECT_ID' // 書き換える
const location = 'asia-northeast1'
const location = 'us-central1'

const vertex_ai = new VertexAI({project: project, location: location});

// Instantiate models
const generativeModel = vertex_ai.getGenerativeModel({
model: 'gemini-1.5-pro', // 'gemini-pro-vision'も選択可
model: 'gemini-2.0-flash-exp', // 'gemini-pro-vision'も選択可
// The following parameters are optional
// They can also be passed to individual content generation requests
safetySettings: [{category: HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT, threshold: HarmBlockThreshold.BLOCK_MEDIUM_AND_ABOVE}],
Expand Down
4 changes: 2 additions & 2 deletions loadWebPages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { webLoad } from './webLoad';
const url = process.argv[2]

const project = 'PROJECT_ID' // 書き換える
const location = 'asia-northeast1'
const location = 'us-central1'

const vertex_ai = new VertexAI({project: project, location: location});

const generativeModel = vertex_ai.getGenerativeModel({
model: 'gemini-pro',
model: 'gemini-2.0-flash-exp',
// The following parameters are optional
// They can also be passed to individual content generation requests
safetySettings: [{category: HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT, threshold: HarmBlockThreshold.BLOCK_MEDIUM_AND_ABOVE}],
Expand Down