Skip to content

Commit bf5cb99

Browse files
committed
updated local_models -> cached_models
1 parent d3cfa31 commit bf5cb99

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

articles/ai-foundry/foundry-local/includes/sdk-reference/javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Many methods outlined in this reference have an `aliasOrModelId` parameter in th
6969
| Method | Signature | Description |
7070
|---------------------------|---------------------------------------------------|--------------------------------------------------|
7171
| `getCacheLocation()` | `() => Promise<string>` | Returns the model cache directory path. |
72-
| `listLocalModels()` | `() => Promise<FoundryModelInfo[]>` | Lists models downloaded to the local cache. |
72+
| `listCachedModels()` | `() => Promise<FoundryModelInfo[]>` | Lists models downloaded to the local cache. |
7373

7474

7575
### Model Management
@@ -112,7 +112,7 @@ await manager.downloadModel(alias)
112112
await manager.loadModel(alias)
113113

114114
// List models in cache
115-
const localModels = await manager.listLocalModels()
115+
const localModels = await manager.listCachedModels()
116116

117117
// List loaded models
118118
const loaded = await manager.listLoadedModels()

articles/ai-foundry/foundry-local/includes/sdk-reference/python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Many methods outlined in this reference have an `alias_or_model_id` parameter in
6666
| Method | Signature | Description |
6767
|---------------------------|---------------------------------------------------|--------------------------------------------------|
6868
| `get_cache_location()` | `() -> str` | Returns the model cache directory path. |
69-
| `list_local_models()` | `() -> list[FoundryModelInfo]` | Lists models downloaded to the local cache. |
69+
| `list_cached_models()` | `() -> list[FoundryModelInfo]` | Lists models downloaded to the local cache. |
7070

7171
### Model Management
7272

@@ -101,7 +101,7 @@ model_info = manager.load_model(alias)
101101
print(f"Model info: {model_info}")
102102

103103
# List models in cache
104-
local_models = manager.list_local_models()
104+
local_models = manager.list_cached_models()
105105
print(f"Models in cache: {local_models}")
106106

107107
# List loaded models

0 commit comments

Comments
 (0)