Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { GoogleGenAI } from '@google/genai';
|
||||
import * as dotenv from 'dotenv';
|
||||
dotenv.config();
|
||||
const ai = new GoogleGenAI();
|
||||
async function run() {
|
||||
const models = await ai.models.list();
|
||||
for await (const m of models) {
|
||||
console.log(m.name);
|
||||
}
|
||||
}
|
||||
run();
|
||||
Reference in New Issue
Block a user