Create NodeJS package
This commit is contained in:
parent
483c5bf4fd
commit
b6f1af0bb4
3 changed files with 65 additions and 0 deletions
17
scripts/main.js
Normal file
17
scripts/main.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
import Tests from './prompt.js';
|
||||
|
||||
class main {
|
||||
constructor() {
|
||||
this.platform = new Tests();
|
||||
this.first();
|
||||
}
|
||||
|
||||
first () {
|
||||
let result = this.platform.generate("gemini-1.5-flash", "What is a TPU?");
|
||||
result.then((log) => {
|
||||
console.log(log.text)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
let runtime = new main();
|
Loading…
Add table
Add a link
Reference in a new issue