import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
// 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>",
"model_deployment_id": "<string>",
"account_id": "<string>",
"alias": "<string>"
}
]
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
// 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>",
"model_deployment_id": "<string>",
"account_id": "<string>",
"alias": "<string>"
}
]
Successful Response
The response is of type ModelServerInfo · object[]
.