From 24faa266222c2cbcf78b8ba2d94cac908934443f Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Thu, 16 Jan 2025 17:55:36 +0800 Subject: [PATCH] fix(llm): mark model.options.upstream_path as deprecated --- changelog/unreleased/kong/deprecate-llm-upstream-url.yml | 3 +++ kong/llm/schemas/init.lua | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/kong/deprecate-llm-upstream-url.yml diff --git a/changelog/unreleased/kong/deprecate-llm-upstream-url.yml b/changelog/unreleased/kong/deprecate-llm-upstream-url.yml new file mode 100644 index 000000000000..73399a9831e4 --- /dev/null +++ b/changelog/unreleased/kong/deprecate-llm-upstream-url.yml @@ -0,0 +1,3 @@ +message: Depcrecate config.model.options.upstream_path in favor of config.model.options.upstream_url +type: deprecation +scope: Plugin diff --git a/kong/llm/schemas/init.lua b/kong/llm/schemas/init.lua index 127350756c7f..70badfeff7f8 100644 --- a/kong/llm/schemas/init.lua +++ b/kong/llm/schemas/init.lua @@ -190,7 +190,10 @@ local model_options_schema = { description = "Manually specify or override the AI operation path, " .. "used when e.g. using the 'preserve' route_type.", type = "string", - required = false }}, + required = false, + deprecation = { + message = "llm: config.model.options.upstream_path is deprecated, please use config.model.options.upstream_url instead", + removal_in_version = "4.0",}, }, }}, { gemini = gemini_options_schema }, { bedrock = bedrock_options_schema }, { huggingface = huggingface_options_schema},