Error 2 solved by changing Json to:
{
"dataSources":[
{
"type":"AzureCognitiveSearch",
"parameters":{
"endpoint":"https://mycongnitivesearchurl.search.windows.net",
"key":"My search service key",
"indexName":"my index name",
"semanticConfiguration":"",
"queryType":"simple",
"fieldsMapping":null,
"inScope":true,
"roleInformation":"You are an AI assistant that helps people find information."
}
}
],
"messages":[
{
"role":"user",
"content":"What is the meaning of life?"
}
],
"deployment":"gpt-35-turbo",
"temperature":0,
"top_p":1,
"max_tokens":800,
"stop":null,
"stream":true
}