llama-stack-mirror/llama_stack
Dinesh Yeduguru 1d8d0593af
register with provider even if present in stack (#491)
# What does this PR do?

Remove a check which skips provider registration if a resource is
already in stack registry. Since we do not reconcile state with
provider, register should always call into provider's register endpoint.


## Test Plan
```
# stack run
╰─❯ llama stack run /Users/dineshyv/.llama/distributions/llamastack-together/together-run.yaml

#register memory bank
❯ llama-stack-client memory_banks register your_memory_bank_name --type vector --provider-id inline::faiss-0

Memory Bank Configuration:
{
│   'memory_bank_type': 'vector',
│   'chunk_size_in_tokens': 512,
│   'embedding_model': 'all-MiniLM-L6-v2',
│   'overlap_size_in_tokens': 64
}

#register again
❯ llama-stack-client memory_banks register your_memory_bank_name --type vector --provider-id inline::faiss-0

Memory Bank Configuration:
{
│   'memory_bank_type': 'vector',
│   'chunk_size_in_tokens': 512,
│   'embedding_model': 'all-MiniLM-L6-v2',
│   'overlap_size_in_tokens': 64
}
```
2024-11-20 11:05:50 -08:00
..
apis Support Tavily as built-in search tool. (#485) 2024-11-19 20:59:02 -08:00
cli Added optional md5 validate command once download is completed (#486) 2024-11-19 17:42:43 -08:00
distribution register with provider even if present in stack (#491) 2024-11-20 11:05:50 -08:00
providers fall to back to read from chroma/pgvector when not in cache (#489) 2024-11-20 10:30:23 -08:00
scripts Fix tgi doc 2024-11-19 21:06:11 -08:00
templates Fix tgi doc 2024-11-19 21:06:11 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00