{"agent":"claude","input":"This Python app fails with an error that says openai.ChatCompletion is no longer supported in openai>=1.0.0. Fix it by migrating to the current OpenAI client; do not pin the old 0.28 release. Read the requirement files and every file that imports openai. Create a clean virtual environment, install the requirements exactly as written, record the versions that resolve, and reproduce the error by calling each route with the framework's test client. List every legacy call: module-level api_key or api_base, ChatCompletion, Completion, Embedding, error classes under openai.error, dictionary access on responses. Port each to a client object and attribute access. You have no API key: start a local stub HTTP server that answers the chat completions path, set OPENAI_BASE_URL to it, and write pytest tests for the route that assert the reply, the request path, the Authorization header and the JSON body. Use the stub to show what the route does for a null content, a missing input parameter and a 429, including how many upstream calls the client makes. Report whether the app still starts with no key set. Set an explicit timeout and retry count on the client. Pin openai in the requirements to the major version you tested. Do not change the model name; say that it was not verified against the live API. Open a pull request with the error before, every command and the test output.","resources":[{"url":"https://github.com/your-org/your-app"}]}