Closed pschofield2 closed 8 months ago
I was getting the error: "TypeError: 'ChatCompletion' object is not subscriptable" when running the query_gpt4 function and it looks like some code associated with the openai client connection and response object needed to be updated per:
https://platform.openai.com/docs/guides/text-generation/chat-completions-api
I was getting the error: "TypeError: 'ChatCompletion' object is not subscriptable" when running the query_gpt4 function and it looks like some code associated with the openai client connection and response object needed to be updated per:
https://platform.openai.com/docs/guides/text-generation/chat-completions-api