llama-stack/llama_stack
Dinesh Yeduguru 8fd9bcb8cd
fix routing in library client (#776)
# What does this PR do?

Library client needs to match the impl based on both the path and
method. Since path is no longer static, this PR uses the inefficient way
of using regexes computed based on the annotated route path to match
against the incoming request path. The variables now also can come to
the impl from both path or the body, which is also handled cleanly by
finding all the regex matches.



## Test Plan


LLAMA_STACK_CONFIG="/Users/dineshyv/.llama/distributions/llamastack-together/together-run.yaml"
pytest -v tests/client-sdk/agents/test_agents.py
2025-01-15 15:59:45 -08:00
..
apis More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
cli [CICD] Github workflow for publishing Docker images (#764) 2025-01-15 09:01:33 -08:00
distribution fix routing in library client (#776) 2025-01-15 15:59:45 -08:00
providers bug fixes on inference tests (#774) 2025-01-15 15:39:05 -08:00
scripts Fix to conda env build script 2024-12-17 12:19:34 -08:00
templates add nvidia distribution (#565) 2025-01-15 14:04:43 -08:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00