Skip to content

Commit

Permalink
fix(ai-proxy) fix missing __key__
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineJac committed Apr 25, 2024
1 parent 5d19ded commit 748f361
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local PLUGIN_NAME = "ai-request-transformer"

local FORMATS = {
openai = {
__key__ = "ai-request-transformer",
route_type = "llm/v1/chat",
model = {
name = "gpt-4",
Expand All @@ -25,6 +26,7 @@ local FORMATS = {
},
},
cohere = {
__key__ = "ai-request-transformer",
route_type = "llm/v1/chat",
model = {
name = "command",
Expand All @@ -41,6 +43,7 @@ local FORMATS = {
},
},
anthropic = {
__key__ = "ai-request-transformer",
route_type = "llm/v1/chat",
model = {
name = "claude-2.1",
Expand All @@ -57,6 +60,7 @@ local FORMATS = {
},
},
azure = {
__key__ = "ai-request-transformer",
route_type = "llm/v1/chat",
model = {
name = "gpt-4",
Expand All @@ -73,6 +77,7 @@ local FORMATS = {
},
},
llama2 = {
__key__ = "ai-request-transformer",
route_type = "llm/v1/chat",
model = {
name = "llama2",
Expand All @@ -90,6 +95,7 @@ local FORMATS = {
},
},
mistral = {
__key__ = "ai-request-transformer",
route_type = "llm/v1/chat",
model = {
name = "mistral",
Expand All @@ -110,6 +116,7 @@ local FORMATS = {

local OPENAI_NOT_JSON = {
route_type = "llm/v1/chat",
__key__ = "ai-request-transformer",
model = {
name = "gpt-4",
provider = "openai",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ local MOCK_PORT = helpers.get_available_port()
local PLUGIN_NAME = "ai-response-transformer"

local OPENAI_INSTRUCTIONAL_RESPONSE = {
__key__ = "ai-response-transformer",
route_type = "llm/v1/chat",
model = {
name = "gpt-4",
Expand Down

0 comments on commit 748f361

Please sign in to comment.