Create backend for AI chat user interface

Created on 10 November 2023, about 1 year ago
Updated 15 April 2024, 8 months ago

Problem/Motivation

As https://www.drupal.org/project/aichat features grows, it may make sense to collaborate between our modules.
aichat have the frontend and have simple ways to create backends like OpenAI assistant API, so aichat and openai_assistants modules fits perfectly together.
This can be done in small iterations, while at the same time, openai_assistants can continue to work on everything else what it needs to in its own speed and objectives. While fully delegate frontend to aichat at the moment when aichat reaches a high level of completeness.

Steps to reproduce

Proposed resolution

  1. Implementing a backend is copying a file like this from aichat to openai_assistants module directory https://git.drupalcode.org/project/aichat/-/blob/1.0.x/modules/aichat_ba... and writing more code.

Remaining tasks

  • Explore implementing simplest backend variant for AI chat user interface
  • Improve integration as aichat feature set grows

User interface changes

API changes

Data model changes

Feature request
Status

Postponed

Version

1.0

Component

Code

Created by

🇱🇹Lithuania mindaugasd

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mindaugasd
  • Status changed to Postponed 8 months ago
  • 🇬🇧United Kingdom robert castelo

    Hi @mindaugasd while I agree that collaboration on common components is a good approach, I'm concerned that aichat is at an Alpha stage, so a lot of the organisations that could potentially use openai_assistants might avoid it as part of a policy of not using Alphas on production projects.

    For now the UI is done on this module and I'm going to focus on other items on the roadmap, but will be happy to revisit the UI later on once other features are completed.

  • 🇱🇹Lithuania mindaugasd

    policy of not using Alphas on production projects.

    alpha stage is quite common in Drupal, at least historically for many projects, while also projects grow to be popular while remaining in alpha stage.
    At the same time, adding aichat backend does not require to create a dependency. Organizations can use openai_assistants without using aichat, but having aichat as an additional option to try, which does not impact stability in any way.

    focus on other items on the roadmap, but will be happy to revisit the UI later on once other features are completed.

    Ok, whenever it will seem like a worthwhile path to start exploring.

Production build 0.71.5 2024