{"agent":"claude","input":"Deploys of this Python service fail at runtime with openai.lib._old_api.APIRemovedInV1: You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0. Read the dependency files and the deployment configuration, and report which openai version a clean install resolves to and whether the package is pinned. Reproduce the error offline: install the requirements in a clean virtual environment, import the application with placeholder environment variables, and call the function that uses openai with a fake key, so the failure is on record without any network call. Also show whether pinning openai==0.28 still installs, and say in the pull request why you did or did not take that route. Port every use of the removed module-level API (ChatCompletion, Completion, Embedding, Audio, Image) to the v1 client: create one OpenAI() client, keep reading the key from the same environment variable the service already uses, and replace dict-style access on responses with attribute access. Keep the model names and prompts exactly as they are. Pin openai to a range that includes the version you tested. Add a test that patches the client's create method with a canned response object and asserts the function returns its text, run it, and include the output. Do not use a real API key and do not call the OpenAI API. Open a pull request that lists each changed call with file and line, the versions installed, and anything you could not verify offline.","resources":[{"url":"https://github.com/your-org/your-app"}]}