llama-stack/llama_stack
Ashwin Bharambe 4938f2fe5d
Check version incompatibility (#738)
When we bump up `major.minor` we want to make sure clients can
immediately detect a version change and appropriately error out. It is
not reasonable to keep checking for API-level backwards compatibility
across such version bumps. Over time, we will make the check based only
on the major version perhaps.

### Test Plan

Manually updated `__version__` in the client SDK to be "0.1.0" which is
incompatible with server's current version "0.0.63", got the following
error:

<img width="1077" alt="image"
src="https://github.com/user-attachments/assets/06ae4659-0a25-4c4c-a999-ce44678d4e6f"
/>

Without this update, the CLI worked correctly.
2025-01-09 14:52:06 -08:00
..
apis agents to use tools api (#673) 2025-01-08 19:01:00 -08:00
cli add --version to llama stack CLI & /version endpoint (#732) 2025-01-08 16:30:06 -08:00
distribution Check version incompatibility (#738) 2025-01-09 14:52:06 -08:00
providers Add X-LlamaStack-Client-Version, rename ProviderData -> Provider-Data (#735) 2025-01-09 11:51:36 -08:00
scripts Fix to conda env build script 2024-12-17 12:19:34 -08:00
templates agents to use tools api (#673) 2025-01-08 19:01:00 -08:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00