How to call a GPT assistant using the open ai api integration

This is the current function I am using

It would seem that I am only calling Davinci, while I would like to call my gpt-3.5-turbo-1106 assistant. Does anyone know how this can be done?

The OpenAI block is limited so you’ll need to set up a Web API to access it. There are some topics here about the OpenAI API and ChatGPT that should get you started.