12 lines
262 B
TypeScript
12 lines
262 B
TypeScript
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();
|