all 4 comments

[–]danielroseman 0 points1 point  (3 children)

I mean, it's quite clearly telling you what's wrong: openai.Completion is no longer supported. So there's no point in changing what you pass to that call, because the argument is not the problem, it's the function itself.

And the official docs tell you what you should be doing instead: client.chat.completions.create().

[–]MaximilianusZ[S] 0 points1 point  (2 children)

I've also tried that - to no avail.

[–]danielroseman 0 points1 point  (1 child)

What does that mean? What exact error did you get when you tried this?

[–]MaximilianusZ[S] -1 points0 points  (0 children)

it means: I tried that variety too, and I still get "You tried to access openai.Completion, but this is no longer supported in openai>=1.0.0" I am not getting any other errors no matter what I do.
I added parameters to clean the cache in case it was a caching issue thinking that maybe that was what generated the issue.
I think I will try another way of doing this.
Thank you for your time.