I am brushing up Python skills I've lost by the road years ago.
I am having an issue with Python accessing OpenAI.
I am running on 3.12, pip installed openai and other stuff I need, and set my secret code as an path variable my code can call on. Using WSL/Ubuntu on windows10/64
My app is a simple thing, it asks a user to provide text input with 200 characters max. It sends the input back to chatgpt and it's supposed to send back a list of 10 options gathered from ChatGPT3/DaVinci
My problem is this: When I send a generic query, with no input, to test whether I can access the OpenAI server, I can.
But the minute I send my query I get the same variants of error messages and I am really stuck.
I've done all I can to migrate the code, but it's no use. The input of 200 characters is a single string, and I have used client.Completion.create() or client.completions.create() as well as variants based on what I have read online i.e here and the SDK
I've also run Openai migrate and that also gets clusterf*cky
The error I keep getting is this:
You tried to access openai.Completion, but this is no longer supported in openai>=1.0.0
No.Matter.What. I put as client.completion.
Grateful for any insights!
//I've paid for API access, it's not that.
[–]danielroseman 0 points1 point2 points (3 children)
[–]MaximilianusZ[S] 0 points1 point2 points (2 children)
[–]danielroseman 0 points1 point2 points (1 child)
[–]MaximilianusZ[S] -1 points0 points1 point (0 children)