Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Allow arguments to be passed to files list request #557

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

Merged

Conversation

assertchris
Copy link
Contributor

@assertchris assertchris commented Apr 14, 2025

What:

  • Bug Fix
  • New Feature

Description:

From a discussion on Twitter...

TL;DR:
You can't currently pass parameters to the files list request, which means you can only ever get the first 10. This PR adds the ability to paginate, change limit etc.

Unrelated: the refactor commands in readme don't appear to work. Everything else passed.

Related:

fixes: #500

@nunomaduro nunomaduro requested a review from iBotPeaches April 14, 2025 01:12
Copy link
Collaborator

@iBotPeaches iBotPeaches left a comment

Choose a reason for hiding this comment

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

good catch. I peeked our tests and didn't see anything that we could augment for this detection in future. The variability of incoming parameters to support changes makes the testing of such a thing not there so not sure we could have caught functions that should have parameters vs not.

+1

@nunomaduro
Copy link
Contributor

@iBotPeaches can you add tests on this?

@iBotPeaches
Copy link
Collaborator

@iBotPeaches can you add tests on this?

Yeah I'll take a stab at it tomorrow. Trying to think of an elegant approach, maybe spying the transporter to see if it sets what we expect.

Copy link
Collaborator

@iBotPeaches iBotPeaches left a comment

Choose a reason for hiding this comment

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

Good night of sleep helped. We missed the contract change, thus when applied it made sense where to enhance the test suite. I believe this is good now w/ tests.

@efpapado efpapado mentioned this pull request Apr 14, 2025
2 tasks
@iBotPeaches iBotPeaches merged commit fe10efb into openai-php:main Apr 14, 2025
10 checks passed
@iBotPeaches
Copy link
Collaborator

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: No Parameters passable for files()->list()
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.