Architecture and Connection Modes
DeGirumJS offers flexible connection modes to cater to various AI inference needs, whether you're running models locally on an AI Server, entirely in the cloud, or a hybrid approach.
Connection Modes
Local Server
const dg = new dg_sdk();
const zoo = await dg.connect('localhost:8779'); // IP/Port of an AI Server on your network
const models = await zoo.listModels();
console.log('Local models:', Object.keys(models));Hybrid (Local + Cloud Models)
const dg = new dg_sdk();
const zoo = await dg.connect(
'localhost:8779', // IP/Port of an AI Server on your network
'https://cs.degirum.com/degirum/public', // or another Cloud Zoo URL from AI Hub
'YOUR_TOKEN' // your AI Hub access token
);
const models = await zoo.listModels();
console.log('Cloud models via local server:', Object.keys(models));Cloud Only
Last updated
Was this helpful?

