Skip to content

Bug: Demo fails with 404 because default model gpt-3.5-turbo-0301 is deprecated #154

Description

@wyzBelinda

Suggested issue body (concise) Steps to reproduce:

pip install lida
pip install -U llmx openai
lida ui --port=8080 --docs

Open the demo page and click Demo → movies.json
Observed behavior:

The UI shows: "An error occurred. Please try again later. Error processing file.."
Terminal shows: Error processing file:

Error code: 404 - {'error': {'message': 'The model gpt-3.5-turbo-0301 has been deprecated, learn more here: https://platform.openai.com/docs/deprecations', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

What I did:

I searched the lida repository for occurrences of the deprecated model name gpt-3.5-turbo-0301 and replaced them with gpt-3.5-turbo. After making that change locally the demo no longer produced the error.
Suggested fix:

Update the default model name(s) in the codebase to a currently supported model (e.g. gpt-3.5-turbo), and/or make the model name configurable (via config file or environment variable) instead of hardcoding it, so future deprecations are easier to handle.
Optionally add a simple runtime check or a clear error message when a configured model is no longer available.
Notes:

I can submit a PR with the change I made (search-and-replace of gpt-3.5-turbo-0301 → gpt-3.5-turbo) and a small README/docs update explaining how to override the model via configuration/env var. Would you like me to open that PR?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions