Hi, we are using the AI API to extract structured metadata. The format of the response from the Box API keeps changing, sometimes multiple times a day. Sometimes it has the below structure, which shows the key name, the prompt, the type and value.
Answer: {
- fields: l
- {
- key: financialYear,
- prompt: What financial year, if any, does this document relate to? Financial years run from 1 July to 30 June. Return the year only (for example the 2023/24 financial year would return 2024),
- type: string,
- value: 2024
- {
}
And other times it simply returns the below:
Answer: {
- financialYear: 2024
}
Every time it changes we are forced to update how the response is treated. Why would this keep changing? Can we force it to stay with the second example?
Thanks.