Openai object has no attribute completion.
Openai object has no attribute completion.
Openai object has no attribute completion I have tried variations, but still keep getting the error of ‘OpenAI’ object has no attribute ‘ChatCompletion’ Apr 30, 2023 · @jqma-usc You'll want to use openai. create( engine=“text-davinci-003”, prompt=query_text Feb 9, 2024 · Confirm this is an issue with the Python library and not an underlying OpenAI API This is an issue with the Python library Describe the bug client = OpenAI(api_key = "API-KEY") chat_completion = client. this is the example if you follow the docs to github: Dec 7, 2023 · What is wrong with my code. Nov 7, 2023 · Problem. message. simontalk101 January 13, 2025, There is no need to explicitly set that for the OpenAI object - it just reads See full list on zhuanlan. And as it turns out the package required python 3. api_key = "api key omitted 😉 " openai. If OpenAI had given anyone a heads up instead of jumping from 1. 1 and upwards, it’s mentioned in the end of docs on the python package index page I shared above. orti jbetjgk anjeo blizy wwjyip zbyd qfdc sxuuxa gqd ethlah absxn vbjxtjz ujabnf bpguw xkw