How to setup context for previous question asked while calling Azure OpenAI gpt-turbo-35 model

Mishra, Ravi Shankar Kumar 30 Reputation points
2023-04-13T05:14:15.4633333+00:00

Hi Team, We are using azure Open AI along with model - gpt-turbo-35. We were successfully able to consume REST API. Can you please help me to understand how I can setup the context for my previously asked question while calling the REST API second time. Is the any parameter defined which we can use in request parameter to set the context while calling the REST API?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,942 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,736 Reputation points
    2023-04-14T03:55:48.64+00:00

    @Mishra, Ravi Shankar Kumar Thanks for the question. Currently we don't have any settings in REST API to setup the context of previously asked questions. You can get this context by first passing the user’s question to the Embedding API and getting a response. https://community.openai.com/t/how-can-i-use-embeddings-with-chat-gpt-3-5-turbo/86759/34

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.