Skip to content

Commit ae769c4

Browse files
authored
Fix custom Memory Stores LRO poller operation (#45662)
1 parent 6074492 commit ae769c4

4 files changed

Lines changed: 18 additions & 3 deletions

File tree

sdk/ai/azure-ai-projects/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Release History
22

3+
## 2.0.1 (2026-03-12)
4+
5+
### Bugs Fixed
6+
7+
* Fix custom Memory Stores LRO poller operation to add the missing
8+
required `"Foundry-Features": "MemoryStores=V1Preview"` HTTP request header.
9+
310
## 2.0.0 (2026-03-06)
411

512
First stable release of the client library that uses the Generally Available (GA) version "v1" of the Foundry REST APIs.

sdk/ai/azure-ai-projects/azure/ai/projects/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "2.0.0"
9+
VERSION = "2.0.1"

sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_patch_memories_async.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
AsyncUpdateMemoriesLROPoller,
2323
AsyncUpdateMemoriesLROPollingMethod,
2424
)
25+
from ...models._enums import _FoundryFeaturesOptInKeys
2526
from ._operations import JSON, _Unset, ClsType, BetaMemoryStoresOperations as GenerateBetaMemoryStoresOperations
2627
from ...operations._patch_memories import _serialize_memory_input_items
2728
from ..._validation import api_version_validation
@@ -349,7 +350,10 @@ def get_long_running_output(pipeline_response):
349350

350351
if polling is True:
351352
polling_method: AsyncUpdateMemoriesLROPollingMethod = AsyncUpdateMemoriesLROPollingMethod(
352-
lro_delay, path_format_arguments=path_format_arguments, **kwargs
353+
lro_delay,
354+
path_format_arguments=path_format_arguments,
355+
headers={"Foundry-Features": _FoundryFeaturesOptInKeys.MEMORY_STORES_V1_PREVIEW.value},
356+
**kwargs,
353357
)
354358
elif polling is False:
355359
polling_method = cast(AsyncUpdateMemoriesLROPollingMethod, AsyncNoPolling())

sdk/ai/azure-ai-projects/azure/ai/projects/operations/_patch_memories.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
UpdateMemoriesLROPoller,
2323
UpdateMemoriesLROPollingMethod,
2424
)
25+
from ..models._enums import _FoundryFeaturesOptInKeys
2526
from ._operations import JSON, _Unset, ClsType, BetaMemoryStoresOperations as GenerateBetaMemoryStoresOperations
2627
from .._validation import api_version_validation
2728
from .._utils.model_base import _deserialize, _serialize
@@ -384,7 +385,10 @@ def get_long_running_output(pipeline_response):
384385

385386
if polling is True:
386387
polling_method: UpdateMemoriesLROPollingMethod = UpdateMemoriesLROPollingMethod(
387-
lro_delay, path_format_arguments=path_format_arguments, **kwargs
388+
lro_delay,
389+
path_format_arguments=path_format_arguments,
390+
headers={"Foundry-Features": _FoundryFeaturesOptInKeys.MEMORY_STORES_V1_PREVIEW.value},
391+
**kwargs,
388392
)
389393
elif polling is False:
390394
polling_method = cast(UpdateMemoriesLROPollingMethod, NoPolling())

0 commit comments

Comments
 (0)