Thank you for your reply @stephens …
My mistake was to use this:
ai = response.json()['choices'][0]['message']['content']
instead of using this:
assistant_response = choices[0]["message"]["content"]
Thank you for your reply @stephens …
My mistake was to use this:
ai = response.json()['choices'][0]['message']['content']
instead of using this:
assistant_response = choices[0]["message"]["content"]