Skip to content

Commit

Permalink
aa
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Aug 8, 2024
1 parent 1564703 commit e3f8a3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kong/clustering/compat/removed_fields.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ return {
"model.options.bedrock",
"auth.aws_access_key_id",
"auth.aws_secret_access_key",
"model_header_name",
"model_name_header",
},
ai_prompt_decorator = {
"max_request_body_size",
Expand Down
9 changes: 8 additions & 1 deletion spec/02-integration/09-hybrid_mode/09-config-compat_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ describe("CP/DP config compat transformations #" .. strategy, function()
end)

describe("ai plugins supported providers", function()
it("[ai-proxy] tries to use unsupported providers on older Kong versions", function()
it("[ai-proxy] tries to use unsupported providers on older Kong versions #ttt", function()
-- [[ 3.8.x ]] --
local ai_proxy = admin.plugins:insert {
name = "ai-proxy",
Expand Down Expand Up @@ -510,6 +510,7 @@ describe("CP/DP config compat transformations #" .. strategy, function()
},
},
max_request_body_size = 8192,
model_name_header = true,
},
}
-- ]]
Expand All @@ -518,6 +519,8 @@ describe("CP/DP config compat transformations #" .. strategy, function()

-- max body size
expected.config.max_request_body_size = nil

-- model name header
expected.config.model_name_header = nil

-- gemini fields
Expand Down Expand Up @@ -696,6 +699,7 @@ describe("CP/DP config compat transformations #" .. strategy, function()
},
},
max_request_body_size = 8192,
model_name_header = true,
},
}
-- ]]
Expand All @@ -705,6 +709,9 @@ describe("CP/DP config compat transformations #" .. strategy, function()
-- max body size
expected.config.max_request_body_size = nil

-- model name header
expected.config.model_name_header = nil

-- gemini fields
expected.config.auth.gcp_service_account_json = nil
expected.config.auth.gcp_use_service_account = nil
Expand Down

0 comments on commit e3f8a3e

Please sign in to comment.