#openai api fine_tunes.create not working
6 messages ยท Page 1 of 1 (latest)
FYI I saw a PR on the github. I downgraded my openai version from 0.26 to 0.25 and now it works
`await cls._stream_events(resp['id'])`~~~
Hey, I am getting this same problem.
I am really (REALLY) new to programming and I am getting the exact same error.
I opened the cls file and found this part of the code but I don't think I am following the advice correctly. I changed
cls._stream_events(resp['id'])
to
await cls._stream_events(resp['id'])
but now in the CLI I am getting (so I have obvs done smthng wrong:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in run_code
File "C:\Users\jayde\AppData\Roaming\Python\Python311\Scripts\openai.exe_main.py", line 4, in <module>
File "C:\Users\jayde\AppData\Roaming\Python\Python311\site-packages\openai_openai_scripts.py", line 7, in <module>
from openai.cli import api_register, display_error, tools_register, wandb_register
File "C.........AppData\Roaming\Python\Python311\site-packages\openai\cli.py", line 406
await cls._stream_events(resp["id"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: 'await' outside async function
Any assistance would be praised, lorded and glorified
Hey can you share the code thats failing too? ๐
Hey, I kept on messing around, learnt how to upgrade/downgrade and just ran it on version 0.25.0 as the person above recommended.
Unforunately, even though I was receiving the error response it still charged me for the tokens and I have smashed out all of my credits :/
Appreciate that you were willing to help though ๐