Skip to content

Commit

Permalink
fix(llm): mark model.options.upstream_path as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Jan 16, 2025
1 parent ce15c78 commit 24faa26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/unreleased/kong/deprecate-llm-upstream-url.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
message: Depcrecate config.model.options.upstream_path in favor of config.model.options.upstream_url
type: deprecation
scope: Plugin
5 changes: 4 additions & 1 deletion kong/llm/schemas/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 24faa26

Please sign in to comment.