Character limits are not respected / Field level instructions

Created on 1 October 2023, about 1 year ago
Updated 23 August 2024, 3 months ago

Problem/Motivation

On many occasions, OpenAI returns a full set of paragraphs as a translation of a node's title field which causes a MYSQL error and prevents auto-accept. The same happens in other cases where, for instance, I have a field that holds an SEO title tag that is limited to 255 characters.

In some way, it might actually be helpful to be able to add an instruction to the AI on a per-field basis, in addition to the general translation instruction because some fields seem to prove problematic in other ways, and with AI being unpredictable by nature, having added control would be a great solution to various use cases.

Steps to reproduce

Create a node and type a single word, like a brand or an object. Often, AI will return a description of the item instead of a translation.

Proposed resolution

Add an input field to the OpenAI UI where site builders can insert a list of field names and instructions. Like:

field_title|This is a title, limit the result to 255 characters and translate literally.
field_body|Return as HTML
field_seo_title|Limit to 155 characters, this is an SEO Title tag.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇹🇭Thailand AlfTheCat

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

Comments & Activities

Production build 0.71.5 2024