Skip to content

Commit

Permalink
chore(llm): remove llm module auth required
Browse files Browse the repository at this point in the history
  • Loading branch information
oowl committed Aug 8, 2024
1 parent db8da59 commit 5910d02
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions kong/llm/schemas/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,6 @@ return {
{ logging = logging_schema },
},
entity_checks = {
-- these three checks run in a chain, to ensure that all auth params for each respective "set" are specified
{ conditional_at_least_one_of = { if_field = "model.provider",
if_match = { one_of = { "openai", "azure", "anthropic", "cohere" } },
then_at_least_one_of = { "auth.header_name", "auth.param_name" },
then_err = "must set one of %s, and its respective options, when provider is not self-hosted" }},

{ mutually_required = { "auth.header_name", "auth.header_value" }, },
{ mutually_required = { "auth.param_name", "auth.param_value", "auth.param_location" }, },

Expand Down

0 comments on commit 5910d02

Please sign in to comment.