mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
chore(plugin): exercise the decision block in catalog testData
The auto router gets a shadow decision block and a provider with a decision path prefix. The manifest test mirrors both and runs New() on them.
This commit is contained in:
+12
-2
@@ -12,7 +12,7 @@ import: github.com/lukaszraczylo/traefik-llmgateway
|
||||
# integration suite). Required for both Traefik itself and the Plugin
|
||||
# Catalog analyzer (piceus), which uses this identical mechanism.
|
||||
basePkg: traefikllmgateway
|
||||
summary: Multi-provider LLM gateway with groups, per-user keys, token/cost limits, MCP/A2A proxy.
|
||||
summary: Multi-provider LLM gateway with groups, per-user keys, token/cost limits, smart routers, MCP/A2A proxy.
|
||||
testData:
|
||||
providers:
|
||||
openai:
|
||||
@@ -21,6 +21,13 @@ testData:
|
||||
models:
|
||||
- gpt-test
|
||||
- gpt-test-large
|
||||
decider:
|
||||
type: openai
|
||||
apiKey: test-key
|
||||
models:
|
||||
- decider-test
|
||||
pathBaseUrls:
|
||||
/v1/decide: http://decider.example.invalid
|
||||
groups:
|
||||
default:
|
||||
providers: []
|
||||
@@ -36,7 +43,7 @@ testData:
|
||||
# copy-pasted example here would risk skipping past.
|
||||
metrics:
|
||||
enabled: true
|
||||
# Two-tier smart router with the v2 classifier, see README.md#smart-routers.
|
||||
# Two-tier smart router with the v2 classifier and a shadow decision model, see README.md#smart-routers.
|
||||
smartRouters:
|
||||
auto:
|
||||
classifier: v2
|
||||
@@ -47,3 +54,6 @@ testData:
|
||||
- name: large
|
||||
minScore: 400
|
||||
models: [openai/gpt-test-large]
|
||||
decision:
|
||||
provider: decider
|
||||
mode: shadow
|
||||
|
||||
Reference in New Issue
Block a user