Unrecognized request arguments supplied: azureSearchEndpoint, azureSearchIndexName, azureSearchKey, data_sources
I'm having trouble making a request to the Azure OpenAI chat model, using my own data in Azure Blob Storage and the Search service as the search engine.
Last week, it was working just fine. I took the sample code available in the Azure OpenAI Studio portal and was able to use it in Postman and later in Power Automate. Here is proof of successful execution:
Here is the JSON used in Power Automate:
{
"data_sources": [
{
"type": "azure_search",
"parameters": {
"endpoint": "https://mygptsearch.search.windows.net",
"index_name": "azureblob-index",
"semantic_configuration": "default",
"query_type": "semantic",
"fields_mapping": {},
"in_scope": true,
"role_information": "You are an AI assistant that helps people find information. Always search for knowledge in internal sources and return all links found in the following format: [Link Text](Link URL).",
"filter": null,
"strictness": 3,
"top_n_documents": 1,
"authentication": {
"type": "api_key",
"key": "mykey"
}
}
}
],
"messages": [
{
"role": "system",
"content": "You are an AI assistant that helps people find information. Always search for knowledge in internal sources and return all links found in the following format: [Link Text](Link URL)."
},
{
"role": "user",
"content": "Ola, tudo bem?"
}
],
"temperature": 0,
"top_p": 1,
"max_tokens": 800,
"stop": null,
"stream": false,
"past_messages": 10,
"frequency_penalty": 0,
"presence_penalty": 0,
"azureSearchEndpoint": "https://mygptsearch.search.windows.net",
"azureSearchKey": "
mykey
",
"azureSearchIndexName": "azureblob-index"
}
Today, I was performing a test on the same implementation model, using the same JSON format provided by the playground, and it flagged the following parameters as unrecognized.
Full JSON used in Postman:
{
"data_sources": [
{
"type": "azure_search",
"parameters": {
"endpoint": "https://dioazuresearch.search.windows.net",
"index_name": "meuindice",
"semantic_configuration": "default",
"query_type": "semantic",
"fields_mapping": {},
"in_scope": true,
"role_information": "Você é um assistente de IA que ajuda as pessoas a encontrar informações.",
"filter": null,
"strictness": 3,
"top_n_documents": 5,
"authentication": {
"type": "api_key",
"key": "mykey"
},
"key": "mykey",
"indexName": "meuindex"
}
}
],
"messages": [
{
"role": "system",
"content": "Você é um assistente de IA que ajuda as pessoas a encontrar informações."
},
{
"role": "user",
"content": "Ola, tudo bem"
}
],
"temperature": 0.7,
"top_p": 0.95,
"max_tokens": 800,
"stop": null,
"stream": true,
"frequency_penalty": 0,
"past_messages": 10,
"presence_penalty": 0,
"azureSearchEndpoint": "https://dioazuresearch.search.windows.net",
"azureSearchKey": "mykey",
"azureSearchIndexName": "meuindice"
}
So basically, it doesn't recognize the parameters it told me to use. Can someone help me?