openai_dblog.settings.yml references deprecated model text-davinci-003

Created on 1 February 2024, 5 months ago
Updated 18 March 2024, 3 months ago

Problem/Motivation

In modules/openai_dblog/config/install/openai_dblog.settings.yml the model is defined as text-davinci-003.
This makes it the model to us _unless_ the config form at /admin/config/openai/openai-dblog/settings is saved.
Note that on this form there's no option in the select-dropdown for text-davinci-003, so the page will (incorrectly) show gpt-3.5-turbo (being the first available option in the dropdown) being used.

On top of that, text-davinci-003 has been shut down on January 04, 2024. See https://platform.openai.com/docs/deprecations/instructgpt-models

So now, openai_dblog itself will throw an error in the dblog (oh, the irony...):

There was an issue obtaining a response from OpenAI. The error was The model `text-davinci-003` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations.

Steps to reproduce

- Vanilla install openai_dblog
- Have an Emergency, Alert, Critical or Error-level db_log entry present in your DB log.
- Go to /admin/reports/dblog
- Refresh page
- See the above mentioned Error.

Proposed resolution

- Replace text-davinci-003 with the (current) default model gpt-3.5-turbo in modules/openai_dblog/config/install/openai_dblog.settings.yml, so new installs run into this issue.
- Create a hook_update_n that changes this in the actual config of the site, so already present installs don't run into this issue.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

1.0

Component

OpenAI Log Analyzer

Created by

πŸ‡³πŸ‡±Netherlands Spokje

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024