Directus Extension AI Pack screenshot

Directus Extension AI Pack

Author Avatar Theme by Br41nslug
Updated: 28 Nov 2024
82 Stars

A bundle of AI related extensions

Categories

Overview

The Directus AI Operations Bundle is a small bundle of Flow Operations that enable interaction with the OpenAI and Stability API’s. It allows users to generate images from text using the Stable Diffusion models with the Stability.ai API, generate images from text using the OpenAI DALL-E models with the OpenAI API, and perform text completion using the OpenAI Davinci models.

Features

  • Stable Diffusion Operation: Generates images from text using the Stable Diffusion models with the Stability.ai API. Saves the resulting image to the file library and returns its ID as output.
  • DALL-E Operation: Generates images from text using the OpenAI DALL-E models with the OpenAI API. Optionally saves the image to the local file library and returns both the original URL and local image file ID.
  • GPT-3 Davinci Operation: Performs text completion using the OpenAI Davinci models with the OpenAI API. Returns the generated text.

Installation

  1. Install the package from npm: npm install directus-extension-ai-operation-bundle.
  2. Alternatively, you can manually download or fork the repository.
  3. Install the requirements by running npm install.
  4. Build the extension using npm run build.
  5. Move the entire project to your extension folder (only the package.json and dist folder are strictly necessary). You can do this with the command mv ./ extensions/directus-extension-ai-operation-bundle.
  6. Restart your Directus instance.

Summary

The Directus AI Operations Bundle is a useful collection of Flow Operations that enable interaction with the OpenAI and Stability API’s. It allows users to generate images from text and perform text completion using state-of-the-art AI models. The installation process is straightforward, making it easy for users to integrate these operations into their Directus instances. Overall, this bundle enhances the functionality of Directus and opens up new possibilities for creative AI-driven operations.