|
12 | 12 | // See the License for the specific language governing permissions and
|
13 | 13 | // limitations under the License.
|
14 | 14 |
|
15 |
| -'use strict'; |
| 15 | +// To make this test work, we need to create datastore, for now it stays commented out |
16 | 16 |
|
17 |
| -const {assert} = require('chai'); |
18 |
| -const {describe, it} = require('mocha'); |
19 |
| - |
20 |
| -const projectId = process.env.CAIP_PROJECT_ID; |
21 |
| -const sample = require('../tools/tools-vais-with-txt.js'); |
22 |
| -const location = process.env.GOOGLE_CLOUD_LOCATION || 'global'; |
23 |
| -const datastore = `projects/${projectId}/locations/global/collections/default_collection/dataStores/grounding-test-datastore`; |
| 17 | +// 'use strict'; |
| 18 | +// |
| 19 | +// const {assert} = require('chai'); |
| 20 | +// const {describe, it} = require('mocha'); |
| 21 | +// |
| 22 | +// const projectId = process.env.CAIP_PROJECT_ID; |
| 23 | +// const sample = require('../tools/tools-vais-with-txt.js'); |
| 24 | +// const location = process.env.GOOGLE_CLOUD_LOCATION || 'global'; |
| 25 | +// const datastore = `projects/${projectId}/locations/global/collections/default_collection/dataStores/grounding-test-datastore`; |
24 | 26 |
|
25 |
| -describe('tools-vais-with-txt', () => { |
26 |
| - it('should generate a function call', async function () { |
27 |
| - this.timeout(60000); |
28 |
| - const output = await sample.generateContent(datastore, projectId, location); |
29 |
| - assert(output.length > 0); |
30 |
| - }); |
31 |
| -}); |
32 |
| -6; |
| 27 | +// describe('tools-vais-with-txt', () => { |
| 28 | +// it('should generate a function call', async function () { |
| 29 | +// this.timeout(60000); |
| 30 | +// const output = await sample.generateContent(datastore, projectId, location); |
| 31 | +// assert(output.length > 0); |
| 32 | +// }); |
| 33 | +// }); |
| 34 | +// ; |
0 commit comments