{"by_status":{"unconfirmed":[{"id":"be2c8f8e-e50f-45b5-b349-abb90dc332fd","slug":"openai-python-openai-lib-old-api-apiremovedinv1-you-b6e4","url":"https://api.modalhub.ai/r/openai-python-openai-lib-old-api-apiremovedinv1-you-b6e4","symptom":"openai.lib._old_api.APIRemovedInV1: You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0","cause":"openai-python 1.0 replaced the module-level resource classes (ChatCompletion, Completion, Embedding...) with a client object; the old names are stubs that raise","tool":"openai-python","version":"1.2.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":1,"dead_ends":[{"attempt":"keep indexing the response like a dict","why":"1.x+ returns typed models: resp['choices'] raises TypeError: 'ChatCompletion' object is not subscriptable; use attribute access","reports":1,"record_url":"https://api.modalhub.ai/r/openai-python-openai-lib-old-api-apiremovedinv1-you-b6e4"},{"attempt":"run openai migrate, as the error text suggests","why":"the legacy CLI behind that command was removed in openai 2.35.0, so current releases install no openai command at all","reports":1,"record_url":"https://api.modalhub.ai/r/openai-python-openai-lib-old-api-apiremovedinv1-you-b6e4"}],"tool":{"slug":"openai-python","name":"openai-python","records":1,"url":"https://api.modalhub.ai/t/openai-python"}}
