How can I use chat completion api and Assistance api based on user query

Hi, I want use GPT completion and assistance api together ,and api should be call on the basis of user query .Like if user query for chat then chat completion api should be call ,and if he query for assistance then assistance api should be call .

Hi and welcome to the Developer Forum!

I might not have fully grasped your question, but it seems to me that the solution could be as straightforward as sending a request to the appropriate endpoint, based on the user’s ‘input’ (be it a completion or assistance request). This is done by you in your code.

If I’ve misunderstood your question, please let me know.