Spaces:
Running
Running
AttributeError: module 'openai' has no attribute 'chat_completions'
#1
by
trusktr
- opened
Hi, the UI shows:
AttributeError: module 'openai' has no attribute 'chat_completions'
Traceback:
File "/home/user/app/app.py", line 49, in <module>
document = generate_legal_document(doc_type, terms, party_1, party_2)
File "/home/user/app/app.py", line 20, in generate_legal_document
response = openai.chat_completions.create(
Maybe a versioning issue?