Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Lucie Milan <[email protected]>
  • Loading branch information
Guaris and lmilan authored Dec 18, 2024
1 parent 08f478b commit cc08269
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/_includes/md/plugins-hub/ai-custom-model-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ config:
auth:
header_name: "Authorization"
header_value: "Bearer <openai_key>"
- model:
model:
name: custom_model_name
provider: openai|azure|anthropic|cohere|mistral|llama2|gemini|bedrock
provider: openai|azure|anthropic|cohere|mistral|llama2|gemini|bedrock|huggingface
options:
upstream_url: http://localhost:8000/vi/chat/completions
targets:
Expand Down
19 changes: 9 additions & 10 deletions app/_includes/md/plugins-hub/ai-custom-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ You can configure the AI Proxy Plugin using a custom model of your choice by set
plugin: kong-inc/ai-proxy-advanced
name: ai-advanced
config:
targets:
- route_type: "llm/v1/chat"
auth:
header_name: "Authorization"
header_value: "Bearer <openai_key>"
- model:
name: custom_model_name
provider: openai|azure|anthropic|cohere|mistral|llama2|gemini|bedrock
options:
upstream_url: http://localhost:8000/vi/chat/completions
route_type: "llm/v1/chat"
auth:
header_name: "Authorization"
header_value: "Bearer <openai_key>"
model:
name: custom_model_name
provider: openai|azure|anthropic|cohere|mistral|llama2|gemini|bedrock|huggingface
options:
upstream_url: http://localhost:8000/vi/chat/completions
targets:
- route
formats:
Expand Down

0 comments on commit cc08269

Please sign in to comment.