Weird one here that might be a bug..
I'm building a custom connector for the Azure OpenAI Assistants API, which is in preview. I've started with the /assistants endpoint, which when hit with the GET method, returns an object containing a list of assistants. Below is a sample of the response:
{
"object": "list",
"data": [
{
"id": "asst_Zhvi7C71z5NvtBi2gnPtVWvj",
"object": "assistant",
"created_at": 1711413456,
"name": "Virtual Functional Consultant",
"description": null,
"model": "gpt-4-32k-0613",
"instructions": "You are an AI assistant that answers questions about acceptance criteria on a project. The uploaded file called User Story Extraction.xlsx contains user stories which will be used as the basis of creating the acceptance criteria",
"tools": [
{
"type": "code_interpreter"
}
],
"file_ids": [
"assistant-Zyb0Gzb8iCMblFzMZI5B4U3Q",
"assistant-Vdgm3zB4571lE1s307RQPkdy",
"assistant-mztgoYH4KaWsVQChjh90wTbo",
"assistant-rKdEDkVmNgpESQ7fud7E7WZ9"
],
"metadata": {}
},
{
"id": "asst_u8eBsdWc3GyAVbe2qC7AQaFv",
"object": "assistant",
"created_at": 1710980435,
"name": "Virtual Project Manager",
"description": null,
"model": "gpt-4-32k-0613",
"instructions": "You are a virtual project manager who can answer questions about time entries against a project. You can summarize the time entries to provide answers to the questions.",
"tools": [
{
"type": "code_interpreter"
}
],
"file_ids": [
"assistant-iH0uO5rLhUJERhoLtOafPLbC"
],
"metadata": {}
}
],
"first_id": "asst_Zhvi7C71z5NvtBi2gnPtVWvj",
"last_id": "asst_u8eBsdWc3GyAVbe2qC7AQaFv",
"has_more": false
}When I add this payload as a sample response in the custom connector setup, it correctly detects all the properties, including the contents of the of the "data" array, which is what I'm interested in displaying in a canvas app.
After saving the custom connector and adding it to the app, the intellisense doesn't 'see' any of the properties of the response. It just flat-out doesn't work.
If I type out the name of the array property in a drop down box's Items property anyway, it doesn't recognise it.
Now, if I got back to the custom connector setup and paste a new payload into the sample response, but manually change the name of the "data" property to something else - let's say "later", save then remove and re-add the connector in the app, hey presto! The intellisense works!
Also, properties other than data/later return the expected value:
However, .later doesn't actually exist in the API response so it doesn't work in the dropdown control.
So, I'm kind of stuck here. I really don't want to write a piece of middleware to rename that "data" property to something else. I feel like this is a bug with custom connectors, like they can't handle an API response containing a property with that name. Not sure if anyone from Microsoft actually reads these boards, but hopefully it can be fixed. Otherwise, is there an easy way of renaming this property in the custom connector setup somehow?

Report
All responses (
Answers (