From 7314b8d55f5d0db97c47f44e2079f9cea61f20dc Mon Sep 17 00:00:00 2001 From: jesse-bos Date: Wed, 29 Apr 2026 10:49:34 +0200 Subject: [PATCH] fix(VectorStores): guard missing description for Azure OpenAI compatibility Azure OpenAI's vector-store endpoint does not yet return the `description` field that was added in v0.19.1, causing "Undefined array key description" errors. Default to null when the key is absent, consistent with how other optional fields are handled across the codebase. --- src/Responses/VectorStores/VectorStoreResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Responses/VectorStores/VectorStoreResponse.php b/src/Responses/VectorStores/VectorStoreResponse.php index 55268792e..154c4dacb 100644 --- a/src/Responses/VectorStores/VectorStoreResponse.php +++ b/src/Responses/VectorStores/VectorStoreResponse.php @@ -55,7 +55,7 @@ public static function from(array $attributes, MetaInformation $meta): self $attributes['object'], $attributes['created_at'], $attributes['name'], - $attributes['description'], + $attributes['description'] ?? null, $attributes['usage_bytes'], VectorStoreResponseFileCounts::from($attributes['file_counts']), $attributes['status'],