Adding a custom AI provider

The ONLYOFFICE editors allow you to add a custom AI provider and configure it according to your preferences.

  1. Begin by setting the provider base class in your project. Refer to our GitHub documentation for example code snippets.
  2. To configure a custom provider, append it to the list of internal providers in the configuration file, located here.

    Ensure you add this script after including storage.js in your codebase for proper dependency management.

  3. The checkModelCapability will check if the model can perform all tasks or just particular ones.
  4. For advanced setup and customization, refer to our configuration guide for step-by-step instructions.

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags