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

[Bug]: Undefined array key "chunking_strategy" #425

Open
dgoetzit opened this issue Jun 11, 2024 · 0 comments
Open

[Bug]: Undefined array key "chunking_strategy" #425

dgoetzit opened this issue Jun 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dgoetzit
Copy link

dgoetzit commented Jun 11, 2024

Description

When using this library with Azure Open AI and attempting to list the Vector Store Files for a particular Vector Store, the following exception is thrown: Undefined array key "chunking_strategy"

This is due to the expectation in the src/Responses/VectorStores/Files/VectorStoreFileResponse.php from() method that the "chunking_strategy" key will exist.

I'd be happy to open a PR to resolve this if I have some upcoming availability, but also want to ensure that support for Azure Open AI is desired by the maintainers before doing so. It does appear that Azure / OpenAI continue to diverge a bit in their respective APIs, resulting in some maintenance nightmares.

Steps To Reproduce

  1. Use this library with Azure Open AI
  2. Try to list the Vector Store Files for a Vector Store:
$this->client->vectorStores()->files()->list(
    vectorStoreId: $vectorStoreId,
);

OpenAI PHP Client Version

v0.10.1

PHP Version

8.2.20

Notes

No response

@dgoetzit dgoetzit added the bug Something isn't working label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant