import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const genericModelResponse = await client.modelServers.execute('model_server_id');
console.log(genericModelResponse.error_message);
{
"status": "<string>",
"status_code": 123,
"error_message": "<string>"
}
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const genericModelResponse = await client.modelServers.execute('model_server_id');
console.log(genericModelResponse.error_message);
{
"status": "<string>",
"status_code": 123,
"error_message": "<string>"
}
Successful Response
The response is of type object
.