Models#
Suppress.js on it own supports only OpenAI models for now. However, you can use any model that is supported by HuggingFace Transformers, if you also install mix.suppress.js package.
Each model in suppress is a child of the SuppressModel class, which gives us a common interface to work with. The SuppressModel class has the following methods:
generate(data): to return the output of the model for given databeIrresnponsible(): To omit any meta-data about the model. This will return the object itself.adjust(key,value): To adjust any properties of the model object. This will return the object itself.
OpenAI Models#
By default the suppress library provides a model for each of the OpenAI models. The link to more details is in the header.
Cohere AI#
You can also access the Cohere AI models using the CohereAILLM model. The link to more details is in the header.
Alepha Alpha#
Another API we support comes from Aleph Alpha. The model is called AlephAlphaLLM and the link to more details is in the header.
* HuggingFace Models#
If you want to use any of the models supported by HuggingFace, you can use the HuggingfaceModel object form mix.suppress.js. The link to more details is in the header.