Skip to content
/ qai Public

Quick AI - Streamlined AI back end for mobile devices

Notifications You must be signed in to change notification settings

logrus-dev/qai

Repository files navigation

A simple OpenAI chat client for using in automated flows.

Define AI assistant configurations in Directus headless CMS and use them by calling this app like http://localhost:3000/?q=Github&a=en_dict&t=***. In this example:

  • http://localhost:3000 - URL of an instance of this application
  • q - prompt to the AI
  • a - assistant code defined in Directus
  • t - Directus user API token (defined in the back office)

Application will send the prompt to the AI, get completion, save it to Directus DB and render the completion as a web page.

As for Directus, there are just two collections used: qai_assistant and qai_completion_cache. Corresponding interfaces can be found in directus.ts.

Application supports AI configurations via HashiCorp's Vault or environment variables. See .env-cmdrc.example file.

I personally use it as a part of Tasker's AutoShare command handlers. Selecting text in any app and then sharing it to a pre-configured AI assistant: dictionary, web summary, translator, etc.

CSS borrowed from beautiful Cactus theme.

About

Quick AI - Streamlined AI back end for mobile devices

Resources

Stars

Watchers

Forks

Packages