openai-php / client

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.56k stars 465 forks source link

[WIP] Add v2 api compatibility and Batches api #401

Closed The-LoneWolf closed 1 month ago

The-LoneWolf commented 1 month ago

What:

Description:

I have applied v1 to v2 migrations of open ai, and also added batches api.

Todos :

gehrisandro commented 1 month ago

Hi @The-LoneWolf

Thanks for the PR.

Is there a reason why you created another PR besides https://github.com/openai-php/client/pull/395 ? What is the difference?

gehrisandro commented 1 month ago

@The-LoneWolf FYI: I am currently extracting the Batch API from this PR.

The-LoneWolf commented 1 month ago

Hi @gehrisandro

No reason :D I only needed to make gpt4-o model to work in our agency projects so, I started working a few days before but then i came see there is another PR going on along with my work.

Do you think this week we can see another release with api v2 an batches api?

gehrisandro commented 1 month ago

@The-LoneWolf Batches API has been released: https://github.com/openai-php/client/releases/tag/v0.9.1

v2 API will take a couple more days.

I leave this PR open as a reference, until v2 is done.

Thanks for your help with the Batches API 🎉

gehrisandro commented 1 month ago

Support for the Assistants API v2 and the Vector Stores API as finally arrived (beta). 🚀

Happy to hear your feedback before making it a stable release.

https://github.com/openai-php/client/releases/tag/v0.10.0-beta.1