Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(metadata-sidebar): Accommodate changes to ai/extract_structured API #3849

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

wpiesiak
Copy link
Contributor

Description

Adjust Extract Structured endpoint to upcoming breaking change: https://developer.box.com/changelog/#2024-12-10-upcoming-breaking-change-in-the-box-ai-api

Current response example:

{
  "name": "Marie",
  "date": "10/2/23"
}

New response format example:

{
  "answer": {
    "name": "Marie",
    "date": "10/2/23"
  },
  "completion_reason": "done",
  "created_at": "2012-12-12T10:53:43-08:00"
}

@wpiesiak wpiesiak requested review from a team as code owners January 15, 2025 13:50
});
});

test.each`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arent't those test the same as above?

Copy link
Contributor Author

@wpiesiak wpiesiak Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I forgot to remove additional tests after refactor to test.each
Thanks for catching this!

@mergify mergify bot merged commit 2a46442 into box:master Jan 17, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants