New OpenAI keys are truncated

Created on 9 October 2024, about 1 month ago

Problem/Motivation

OpenAI keys now have a length of 165 chars. The settings form use a 'textfield' with the default maxsize of 128 for storing the key.

Steps to reproduce

In /admin/config/media/openai_images_settings, enter a key with length bigger than 128: it is stored truncated, generating an 'Invalid key' error.

Proposed resolution

Extend the max length of the form textfield to 255.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain interdruper

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

Comments & Activities

Production build 0.71.5 2024