llama-stack/llama_stack/distribution/server
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
..
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
endpoints.py Make sure server code uses version prefixed routes 2024-11-19 09:15:05 -08:00
server.py Check version incompatibility (#738) 2025-01-09 14:52:06 -08:00