UNPKG

multimind-sdk

Version:

This SDK gives JavaScript/TypeScript developers full access to advanced AI features like agent orchestration, RAG, and fine-tuning — without needing to manage backend code.

33 lines 961 B
import { py } from './bridge/multimind-bridge.js'; export async function loadModel(config) { const { name, config: modelConfig = {} } = config; try { const model = await py `load_model(${name}, config=${modelConfig})`; return model; } catch (error) { console.error('Error loading model:', error); throw error; } } export async function routeModel(input, availableModels) { try { const model = await py `route_model(${input}, available_models=${availableModels || []})`; return model; } catch (error) { console.error('Error routing model:', error); throw error; } } export async function listAvailableModels() { try { const models = await py `load_model.list_available()`; return models; } catch (error) { console.error('Error listing available models:', error); throw error; } } //# sourceMappingURL=models.js.map