codeinterpreter-api icon indicating copy to clipboard operation
codeinterpreter-api copied to clipboard

session.generate_response throws exception

Open pffijt opened this issue 2 years ago • 1 comments

The Dataset Analysis example seems broken. agenerate_response in session.py logs while running verbose mode

("Must provide an 'engine' or 'deployment_id' parameter to create a <class 'openai.api_resources.chat_completion.ChatCompletion'>",). 

After running from the example:

response = await session.generate_response(
            user_request, files=files
)

Is there any workaround or fix?

Running on Python 3.11.4 and codeinterpreterapi==0.0.11

pffijt avatar Aug 17 '23 13:08 pffijt

Same error on Python 3.9.13 and codeinterpreterapi 0.0.14

luyang-NWPU avatar Oct 28 '23 02:10 luyang-NWPU