File tree 2 files changed +6
-10
lines changed
libs/langchain-google-genai
2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 26
26
"lint:fix" : " yarn lint:eslint --fix && yarn lint:dpdm" ,
27
27
"clean" : " rm -rf dist/ && NODE_OPTIONS=--max-old-space-size=4096 yarn lc-build --config ./langchain.config.js --create-entrypoints --pre" ,
28
28
"prepack" : " yarn build" ,
29
- "test" : " NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\ .int\\ .test.ts --testTimeout 30000 --maxWorkers=50%" ,
30
- "test:watch" : " NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\ .int\\ .test.ts" ,
31
- "test:single" : " NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000" ,
32
- "test:int" : " NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\ .int\\ .test.ts --testTimeout 100000 --maxWorkers=50%" ,
29
+ "test" : " yarn build:deps && NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\ .int\\ .test.ts --testTimeout 30000 --maxWorkers=50%" ,
30
+ "test:watch" : " yarn build:deps && NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\ .int\\ .test.ts" ,
31
+ "test:single" : " yarn build:deps && NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000" ,
32
+ "test:int" : " yarn build:deps && NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\ .int\\ .test.ts --testTimeout 100000 --maxWorkers=50%" ,
33
33
"format" : " prettier --config .prettierrc --write \" src\" " ,
34
34
"format:check" : " prettier --config .prettierrc --check \" src\" " ,
35
35
"move-cjs-to-dist" : " yarn lc-build --config ./langchain.config.js --move-cjs-dist" ,
Original file line number Diff line number Diff line change @@ -192,10 +192,6 @@ export class ChatGoogleGenerativeAI
192
192
193
193
apiKey ?: string ;
194
194
195
- apiVersion ?: string = "v1" ;
196
-
197
- baseUrl ?: string = "https://generativeai.googleapis.com" ;
198
-
199
195
streaming = false ;
200
196
201
197
private client : GenerativeModel ;
@@ -278,8 +274,8 @@ export class ChatGoogleGenerativeAI
278
274
} ,
279
275
} ,
280
276
{
281
- apiVersion : this . apiVersion ,
282
- baseUrl : this . baseUrl ,
277
+ apiVersion : fields ? .apiVersion ,
278
+ baseUrl : fields ? .baseUrl ,
283
279
}
284
280
) ;
285
281
}
You can’t perform that action at this time.
0 commit comments