anything-llm/server/utils/agents/aibitat/providers/ai-provider.js

20 lines
357 B
JavaScript
Raw Normal View History

/**
* A service that provides an AI client to create a completion.
*/
class Provider {
_client;
constructor(client) {
if (this.constructor == Provider) {
throw new Error("Class is of abstract type and can't be instantiated");
}
this._client = client;
}
get client() {
return this._client;
}
}
module.exports = Provider;