-
Notifications
You must be signed in to change notification settings - Fork 367
Description
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?