API Issue with the Response Structure

Hi,

I am trying to use the ChatGPT API and one of the use cases is, that I want to get the list of the currently available ChatGPT models. I defined the API Get request with the response data structure that looks like the following:

  1. According to the API description

  2. The structure I defined in the flow part …

  3. What I got after I closed the flow part and reopened it …

The structure seems to be mixed up. There appears to be an error.

I now try instead of defining permissions as a list to define the “permission” parameter as a text maybe that works.

I just have the confirmation that this worked although of course, I do not get the permission back!

Cheers,
Sven

1 Like

Hi @sven.brossi,

Thanks for bringing this to our attention. I will ask the team to look into this because it indeed seems like a defect.

Though in general I think that the structure is still correct, it’s just that the order of the items has changed. This shouldn’t be a problem for the functionality, though I think it should not change from how you defined it.

Please see if it works with the original version, I think you’ll find that will actually work.

@Alex I have created a defect for this.

1 Like

Hi @Jesse,

Thank you, I will try it and in case it will not work let you know.

Cheers,
Sven

1 Like

Hi @sven.brossi,

A quick update, because it isn’t in the 2024.2 release notes, that this issue was fixed in the 2024.2 release.

It should now keep the order that you typed. Keep in mind that technically there shouldn’t be a difference, the order shouldn’t matter as per the definition of JSON. However, for us mere humans, it can be disorienting when the order changes, of course :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.