import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const modelServerInfo of client.modelServers.list()) {
console.log(modelServerInfo.account_id);
}[
{
"name": "<string>",
"model_server_id": "<string>",
"account_id": "<string>",
"model_deployment_id": "<string>",
"alias": "<string>"
}
]import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const modelServerInfo of client.modelServers.list()) {
console.log(modelServerInfo.account_id);
}[
{
"name": "<string>",
"model_server_id": "<string>",
"account_id": "<string>",
"model_deployment_id": "<string>",
"alias": "<string>"
}
]