diff --git a/docs/openapi_generator/pyopenapi/generator.py b/docs/openapi_generator/pyopenapi/generator.py index 66424ab15..23465257a 100644 --- a/docs/openapi_generator/pyopenapi/generator.py +++ b/docs/openapi_generator/pyopenapi/generator.py @@ -486,13 +486,22 @@ class Generator: parameters = path_parameters + query_parameters parameters += [ Parameter( - name="X-LlamaStack-ProviderData", + name="X-LlamaStack-Provider-Data", in_=ParameterLocation.Header, description="JSON-encoded provider data which will be made available to the adapter servicing the API", required=False, schema=self.schema_builder.classdef_to_ref(str), ) ] + parameters += [ + Parameter( + name="X-LlamaStack-Client-Version", + in_=ParameterLocation.Header, + description="Version of the client making the request. This is used to ensure that the client and server are compatible.", + required=False, + schema=self.schema_builder.classdef_to_ref(str), + ) + ] # data passed in payload if op.request_params: diff --git a/docs/resources/llama-stack-spec.html b/docs/resources/llama-stack-spec.html index 377adf466..7ace983f8 100644 --- a/docs/resources/llama-stack-spec.html +++ b/docs/resources/llama-stack-spec.html @@ -41,13 +41,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -81,13 +90,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -121,13 +139,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -154,13 +181,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -201,13 +237,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -248,13 +293,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -288,13 +342,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -328,13 +391,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -375,13 +447,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -408,13 +489,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -441,13 +531,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -481,13 +580,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -521,13 +629,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -577,13 +694,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -649,13 +775,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -703,13 +838,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -748,13 +892,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -793,13 +946,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -851,13 +1013,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -896,13 +1067,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -958,13 +1138,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1003,13 +1192,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1048,13 +1246,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1097,13 +1304,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -1145,13 +1361,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1183,13 +1408,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1228,13 +1462,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1273,13 +1516,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1303,13 +1555,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1333,13 +1594,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1356,13 +1626,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -1397,13 +1676,22 @@ "summary": "Run a tool with the given arguments", "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -1430,13 +1718,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -1486,13 +1783,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1539,13 +1845,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1569,13 +1884,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1599,13 +1923,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1642,13 +1975,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1672,13 +2014,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1705,13 +2056,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1741,13 +2101,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1779,13 +2148,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -1819,13 +2197,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1849,13 +2236,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1880,13 +2276,22 @@ "summary": "List tool groups with optional provider", "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1919,13 +2324,22 @@ } }, { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } @@ -1942,13 +2356,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -1982,13 +2405,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2022,13 +2454,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2062,13 +2503,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2102,13 +2552,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2135,13 +2594,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2168,13 +2636,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2197,13 +2674,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2237,13 +2723,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2270,13 +2765,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2310,13 +2814,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2344,13 +2857,22 @@ "summary": "Register a tool group", "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2384,13 +2906,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2424,13 +2955,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2457,13 +2997,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2497,13 +3046,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2537,13 +3095,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2577,13 +3144,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2617,13 +3193,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2650,13 +3235,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2683,13 +3277,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2716,13 +3319,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2750,13 +3362,22 @@ "summary": "Unregister a tool group", "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ], "requestBody": { @@ -2790,13 +3411,22 @@ ], "parameters": [ { - "name": "X-LlamaStack-ProviderData", + "name": "X-LlamaStack-Provider-Data", "in": "header", "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", "required": false, "schema": { "type": "string" } + }, + { + "name": "X-LlamaStack-Client-Version", + "in": "header", + "description": "Version of the client making the request. This is used to ensure that the client and server are compatible.", + "required": false, + "schema": { + "type": "string" + } } ] } diff --git a/docs/resources/llama-stack-spec.yaml b/docs/resources/llama-stack-spec.yaml index f64255341..a2f6bc005 100644 --- a/docs/resources/llama-stack-spec.yaml +++ b/docs/resources/llama-stack-spec.yaml @@ -3184,7 +3184,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3209,7 +3216,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3230,7 +3244,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3255,7 +3276,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3286,7 +3314,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3331,7 +3366,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3350,7 +3392,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3393,7 +3442,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3412,7 +3468,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3437,7 +3500,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3462,7 +3532,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3503,7 +3580,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3527,7 +3611,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3548,7 +3639,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3567,7 +3665,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3588,7 +3693,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3614,7 +3726,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3635,7 +3754,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3654,7 +3780,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3675,7 +3808,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3700,7 +3840,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3731,7 +3878,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3760,7 +3914,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3781,7 +3942,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3806,7 +3974,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3825,7 +4000,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3852,7 +4034,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3879,7 +4068,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3909,7 +4105,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3934,7 +4137,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3957,7 +4167,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3976,7 +4193,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -3997,7 +4221,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4018,7 +4249,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4048,7 +4286,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4069,7 +4314,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4088,7 +4340,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4113,7 +4372,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4139,7 +4405,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4160,7 +4433,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4186,7 +4466,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4207,7 +4494,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4226,7 +4520,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4251,7 +4552,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4276,7 +4584,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4297,7 +4612,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4320,7 +4642,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4350,7 +4679,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4371,7 +4707,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4390,7 +4733,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4411,7 +4761,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4436,7 +4793,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4466,7 +4830,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4487,7 +4858,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4506,7 +4884,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4531,7 +4916,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4566,7 +4958,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4593,7 +4992,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4614,7 +5020,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4639,7 +5052,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4664,7 +5084,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4685,7 +5112,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4716,7 +5150,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4746,7 +5187,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4765,7 +5213,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4785,7 +5240,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4807,7 +5269,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4834,7 +5303,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4858,7 +5334,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string @@ -4878,7 +5361,14 @@ paths: - description: JSON-encoded provider data which will be made available to the adapter servicing the API in: header - name: X-LlamaStack-ProviderData + name: X-LlamaStack-Provider-Data + required: false + schema: + type: string + - description: Version of the client making the request. This is used to ensure + that the client and server are compatible. + in: header + name: X-LlamaStack-Client-Version required: false schema: type: string diff --git a/llama_stack/distribution/request_headers.py b/llama_stack/distribution/request_headers.py index 41952edfd..2a9bc622a 100644 --- a/llama_stack/distribution/request_headers.py +++ b/llama_stack/distribution/request_headers.py @@ -40,8 +40,8 @@ class NeedsRequestProviderData: def set_request_provider_data(headers: Dict[str, str]): keys = [ - "X-LlamaStack-ProviderData", - "x-llamastack-providerdata", + "X-LlamaStack-Provider-Data", + "x-llamastack-provider-data", ] for key in keys: val = headers.get(key, None) diff --git a/llama_stack/providers/inline/scoring/braintrust/braintrust.py b/llama_stack/providers/inline/scoring/braintrust/braintrust.py index 6cfc94df5..442a7c3c4 100644 --- a/llama_stack/providers/inline/scoring/braintrust/braintrust.py +++ b/llama_stack/providers/inline/scoring/braintrust/braintrust.py @@ -156,7 +156,7 @@ class BraintrustScoringImpl( provider_data = self.get_request_provider_data() if provider_data is None or not provider_data.openai_api_key: raise ValueError( - 'Pass OpenAI API Key in the header X-LlamaStack-ProviderData as { "openai_api_key": }' + 'Pass OpenAI API Key in the header X-LlamaStack-Provider-Data as { "openai_api_key": }' ) self.config.openai_api_key = provider_data.openai_api_key diff --git a/llama_stack/providers/remote/inference/fireworks/fireworks.py b/llama_stack/providers/remote/inference/fireworks/fireworks.py index 6706e9f4a..e0603a5dc 100644 --- a/llama_stack/providers/remote/inference/fireworks/fireworks.py +++ b/llama_stack/providers/remote/inference/fireworks/fireworks.py @@ -118,7 +118,7 @@ class FireworksInferenceAdapter( provider_data = self.get_request_provider_data() if provider_data is None or not provider_data.fireworks_api_key: raise ValueError( - 'Pass Fireworks API Key in the header X-LlamaStack-ProviderData as { "fireworks_api_key": }' + 'Pass Fireworks API Key in the header X-LlamaStack-Provider-Data as { "fireworks_api_key": }' ) return provider_data.fireworks_api_key diff --git a/llama_stack/providers/remote/inference/groq/groq.py b/llama_stack/providers/remote/inference/groq/groq.py index edbfd3080..5db4c0894 100644 --- a/llama_stack/providers/remote/inference/groq/groq.py +++ b/llama_stack/providers/remote/inference/groq/groq.py @@ -145,6 +145,6 @@ class GroqInferenceAdapter(Inference, ModelRegistryHelper, NeedsRequestProviderD provider_data = self.get_request_provider_data() if provider_data is None or not provider_data.groq_api_key: raise ValueError( - 'Pass Groq API Key in the header X-LlamaStack-ProviderData as { "groq_api_key": "" }' + 'Pass Groq API Key in the header X-LlamaStack-Provider-Data as { "groq_api_key": "" }' ) return Groq(api_key=provider_data.groq_api_key) diff --git a/llama_stack/providers/remote/inference/together/together.py b/llama_stack/providers/remote/inference/together/together.py index 3dad5ade4..76f411c45 100644 --- a/llama_stack/providers/remote/inference/together/together.py +++ b/llama_stack/providers/remote/inference/together/together.py @@ -135,7 +135,7 @@ class TogetherInferenceAdapter( provider_data = self.get_request_provider_data() if provider_data is None or not provider_data.together_api_key: raise ValueError( - 'Pass Together API Key in the header X-LlamaStack-ProviderData as { "together_api_key": }' + 'Pass Together API Key in the header X-LlamaStack-Provider-Data as { "together_api_key": }' ) together_api_key = provider_data.together_api_key return Together(api_key=together_api_key) diff --git a/llama_stack/providers/remote/tool_runtime/bing_search/bing_search.py b/llama_stack/providers/remote/tool_runtime/bing_search/bing_search.py index 5cf36acbc..b864620d8 100644 --- a/llama_stack/providers/remote/tool_runtime/bing_search/bing_search.py +++ b/llama_stack/providers/remote/tool_runtime/bing_search/bing_search.py @@ -46,7 +46,7 @@ class BingSearchToolRuntimeImpl( provider_data = self.get_request_provider_data() if provider_data is None or not provider_data.api_key: raise ValueError( - 'Pass Bing Search API Key in the header X-LlamaStack-ProviderData as { "api_key": }' + 'Pass Bing Search API Key in the header X-LlamaStack-Provider-Data as { "api_key": }' ) return provider_data.api_key diff --git a/llama_stack/providers/remote/tool_runtime/brave_search/brave_search.py b/llama_stack/providers/remote/tool_runtime/brave_search/brave_search.py index 05a3f2566..259d02f1b 100644 --- a/llama_stack/providers/remote/tool_runtime/brave_search/brave_search.py +++ b/llama_stack/providers/remote/tool_runtime/brave_search/brave_search.py @@ -45,7 +45,7 @@ class BraveSearchToolRuntimeImpl( provider_data = self.get_request_provider_data() if provider_data is None or not provider_data.api_key: raise ValueError( - 'Pass Search provider\'s API Key in the header X-LlamaStack-ProviderData as { "api_key": }' + 'Pass Search provider\'s API Key in the header X-LlamaStack-Provider-Data as { "api_key": }' ) return provider_data.api_key diff --git a/llama_stack/providers/remote/tool_runtime/tavily_search/tavily_search.py b/llama_stack/providers/remote/tool_runtime/tavily_search/tavily_search.py index 8f86edfb1..1716f96e5 100644 --- a/llama_stack/providers/remote/tool_runtime/tavily_search/tavily_search.py +++ b/llama_stack/providers/remote/tool_runtime/tavily_search/tavily_search.py @@ -45,7 +45,7 @@ class TavilySearchToolRuntimeImpl( provider_data = self.get_request_provider_data() if provider_data is None or not provider_data.api_key: raise ValueError( - 'Pass Search provider\'s API Key in the header X-LlamaStack-ProviderData as { "api_key": }' + 'Pass Search provider\'s API Key in the header X-LlamaStack-Provider-Data as { "api_key": }' ) return provider_data.api_key diff --git a/llama_stack/providers/remote/tool_runtime/wolfram_alpha/wolfram_alpha.py b/llama_stack/providers/remote/tool_runtime/wolfram_alpha/wolfram_alpha.py index af99d7b2a..8d0792ca0 100644 --- a/llama_stack/providers/remote/tool_runtime/wolfram_alpha/wolfram_alpha.py +++ b/llama_stack/providers/remote/tool_runtime/wolfram_alpha/wolfram_alpha.py @@ -46,7 +46,7 @@ class WolframAlphaToolRuntimeImpl( provider_data = self.get_request_provider_data() if provider_data is None or not provider_data.api_key: raise ValueError( - 'Pass WolframAlpha API Key in the header X-LlamaStack-ProviderData as { "api_key": }' + 'Pass WolframAlpha API Key in the header X-LlamaStack-Provider-Data as { "api_key": }' ) return provider_data.api_key diff --git a/llama_stack/providers/tests/resolver.py b/llama_stack/providers/tests/resolver.py index 6f3733408..81816d51e 100644 --- a/llama_stack/providers/tests/resolver.py +++ b/llama_stack/providers/tests/resolver.py @@ -79,7 +79,7 @@ async def construct_stack_for_test( if provider_data: set_request_provider_data( - {"X-LlamaStack-ProviderData": json.dumps(provider_data)} + {"X-LlamaStack-Provider-Data": json.dumps(provider_data)} ) return test_stack