Closed yuanbohan closed 4 months ago
ERROR:app:Exception on /openai/audio/speech [POST] Traceback (most recent call last): File "/Users/yuanbohan/workspace/github.com/greptimeai-cookbook/examples/openai/.venv/lib/python3.11/site-packages/flask/app.py", line 1455, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yuanbohan/workspace/github.com/greptimeai-cookbook/examples/openai/.venv/lib/python3.11/site-packages/flask/app.py", line 869, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yuanbohan/workspace/github.com/greptimeai-cookbook/examples/openai/.venv/lib/python3.11/site-packages/flask/app.py", line 867, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yuanbohan/workspace/github.com/greptimeai-cookbook/examples/openai/.venv/lib/python3.11/site-packages/flask/app.py", line 852, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yuanbohan/workspace/github.com/greptimeai-cookbook/examples/openai/src/openai_example/app.py", line 32, in audio return audio_speech(message, user_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yuanbohan/workspace/github.com/greptimeai-cookbook/examples/openai/src/openai_example/__init__.py", line 88, in audio_speech resp = client.audio.speech.create(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yuanbohan/workspace/github.com/greptimeai-cookbook/examples/openai/.venv/lib/python3.11/site-packages/greptimeai/patcher/openai_patcher/base.py", line 144, in wrapper raise e File "/Users/yuanbohan/workspace/github.com/greptimeai-cookbook/examples/openai/.venv/lib/python3.11/site-packages/greptimeai/patcher/openai_patcher/base.py", line 141, in wrapper resp = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ TypeError: Speech.create() got an unexpected keyword argument 'user_id' INFO:werkzeug:127.0.0.1 - - [26/Dec/2023 11:08:35] "POST /openai/audio/speech HTTP/1.1" 500 -