large-models-interface
Version:
A comprehensive, unified interface for all types of AI models - natural language, vision, audio, and video. Supports 51 providers with dynamic model discovery and multi-modal capabilities.
24 lines (18 loc) • 648 B
JavaScript
/**
* @file src/interfaces/ailayer.js
* @class AILayer
* @description Wrapper class for the AILayer API.
* @param {string} apiKey - The API key for the AILayer API.
*/
const BaseInterface = require('./baseInterface.js');
const { ailayerApiKey } = require('../utils/loadApiKeysFromEnv.js');
const { getConfig, loadProviderConfig } = require('../utils/configManager.js');
const interfaceName = 'ailayer';
loadProviderConfig(interfaceName);
const config = getConfig();
class AILayer extends BaseInterface {
constructor(apiKey) {
super(interfaceName, apiKey || ailayerApiKey, config[interfaceName].url);
}
}
module.exports = AILayer;