Did the same as Mark. Captured the REST API from network traffic when using the chat playground.
Here's the updated REST API Call
URL: https://[YOURENDPOINT]/openai/deployments/[YOURMODEL]/extensions/chat/completions?api-version=2023-06-01-preview
Method: POST
Headers:
Content-Type:application/json
api-key: [YOURAPIKEY]
chatgpt_url: https://[YOURENDPOINT]/openai/deployments/[YOURMODEL]/chat/completions?api-version=2023-03-15-preview
chatgpt_key: [YOURAPIKEY]
{
"messages": [
{
"role": "user",
"content": "what are the 10 traps to avoid in data catalog project"
}
],
"temperature": 0.5,
"top_p": 0.95,
"frequency_penalty": 0,
"presence_penalty": 0,
"max_tokens": 800,
"stop": null,
"deployment": "gtp-35-turbo",
"stream": false,
"dataSources": [
{
"type": "AzureCognitiveSearch",
"parameters": {
"endpoint": "[OPENAIENDPOINT]",
"key": "[OPENAIENDKEY]",
"indexName": "[CSSEARCHINDEX]",
"semanticConfiguration": "",
"queryType": "simple",
"fieldsMapping": {
"contentFieldsSeparator": "\n",
"contentFields": [
"content"
],
"filepathField": "metadata_storage_name",
"titleField": null,
"urlField": null
},
"inScope": false,
"roleInformation": "You are an AI assistant that helps people find information."
}
}
]
}