Migrate legacy completions model to chat

Created on 17 July 2023, 11 months ago
Updated 23 July 2023, 11 months ago

Thank you for the contribution adding this module to serve openai a translator for TMGMT module.
I'd like to propose upgrade the OpenAI model to newer ones so it can be up-to-date and be more capable of the translation.

Problem/Motivation

Completions models in the module are all legacy model and will be shutdown on 4th Jan, 2024. OpenAI recommend to use the new Chat model gpt-4, gpt-3.5-turbo, gpt-3.5-turbo-16k which cost only 1/10.

Being able to use gpt-3.5-turbo-16k will be more capable for formatted Text using HTML code.

Proposed resolution

  1. Remove old models
  2. Add new Chat models and openai-php client code
  3. Migrate old models to new models for user who update the module

User interface changes

Due to different response data structure, the prompt will no longer need to replace token "%text%"

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΉπŸ‡ΌTaiwan amourow

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

Comments & Activities

Production build 0.69.0 2024