llama-stack/llama_stack/distribution
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
..
routers agents to use tools api (#673) 2025-01-08 19:01:00 -08:00
server Check version incompatibility (#738) 2025-01-09 14:52:06 -08:00
store agents to use tools api (#673) 2025-01-08 19:01:00 -08:00
tests Fix bedrock inference impl 2024-12-16 14:22:34 -08:00
ui Fix failing flake8 E226 check (#701) 2025-01-02 09:04:07 -08:00
utils Ensure model_local_dir does not mangle "C:\" on Windows 2024-11-24 14:18:59 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
build.py [remove import *] clean up import *'s (#689) 2024-12-27 15:45:44 -08:00
build_conda_env.sh Fix to conda env build script 2024-12-17 12:19:34 -08:00
build_container.sh Add missing newlines before printing the Dockerfile content (#700) 2025-01-02 09:04:29 -08:00
build_venv.sh Miscellaneous fixes around telemetry, library client and run yaml autogen 2024-12-08 20:40:22 -08:00
client.py use API version in "remote" stack client 2024-11-19 15:59:47 -08:00
common.sh API Updates (#73) 2024-09-17 19:51:35 -07:00
configure.py [remove import *] clean up import *'s (#689) 2024-12-27 15:45:44 -08:00
configure_container.sh docker: Check for selinux before using --security-opt (#167) 2024-10-02 10:37:41 -07:00
datatypes.py agents to use tools api (#673) 2025-01-08 19:01:00 -08:00
distribution.py Tools API with brave and MCP providers (#639) 2024-12-19 21:25:17 -08:00
inspect.py add --version to llama stack CLI & /version endpoint (#732) 2025-01-08 16:30:06 -08:00
library_client.py agents to use tools api (#673) 2025-01-08 19:01:00 -08:00
request_headers.py Add X-LlamaStack-Client-Version, rename ProviderData -> Provider-Data (#735) 2025-01-09 11:51:36 -08:00
resolver.py agents to use tools api (#673) 2025-01-08 19:01:00 -08:00
stack.py agents to use tools api (#673) 2025-01-08 19:01:00 -08:00
start_conda_env.sh Move to use argparse, fix issues with multiple --env cmdline options 2024-11-18 16:31:59 -08:00
start_container.sh Fix incorrect entrypoint for broken llama stack run (#706) 2025-01-03 09:47:10 -08:00