Skip to content

Files api: add "receive", "receive content" and "delete" #1

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
merged 1 commit into from
Sep 27, 2022

Conversation

gehrisandro
Copy link
Collaborator

Hi @nunomaduro

I had a little time and extended the files api a bit.

Was not 100% sure how we should approach the content receiving as this will not follow the REST convention to return an array. Instead it returns just a string.
In order to keep the type definitions as tight as possible I've added a new method (requestContent()) on the Transport. Hope this is fine for you. Otherwise just let me know.

@nunomaduro nunomaduro merged commit 118acfb into openai-php:main Sep 27, 2022
@nunomaduro
Copy link
Contributor

Very impressive pull request. Good job! Feel free to continue, and implement other methods. ✅

@gehrisandro gehrisandro deleted the extend-files-api branch September 29, 2022 21:38
@syntlex syntlex mentioned this pull request Mar 14, 2023
gehrisandro pushed a commit that referenced this pull request May 16, 2024
Fix broken tests on assistant streaming
asaveiadelin pushed a commit to asaveiadelin/openAiPhp-client that referenced this pull request Nov 4, 2024
…m(): Argument openai-php#1 () must be of type array, string given,
asaveiadelin pushed a commit to asaveiadelin/openAiPhp-client that referenced this pull request Nov 4, 2024
mayconmedeiroz pushed a commit to mayconmedeiroz/client that referenced this pull request Feb 4, 2025
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.

2 participants