mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 08:46:24 +02:00
add listener routes for internal service proxying (#793)
This commit is contained in:
parent
198c912202
commit
c2480639b2
13 changed files with 219 additions and 2 deletions
|
|
@ -289,6 +289,63 @@ llm_providers:
|
|||
tracing:
|
||||
random_sampling: 100
|
||||
|
||||
""",
|
||||
},
|
||||
{
|
||||
"id": "routes_with_agents",
|
||||
"expected_error": None,
|
||||
"plano_config": """
|
||||
version: v0.3.0
|
||||
|
||||
agents:
|
||||
- id: test_agent
|
||||
url: http://localhost:10500
|
||||
|
||||
listeners:
|
||||
- type: agent
|
||||
name: agent_1
|
||||
port: 8001
|
||||
routes:
|
||||
- path_prefix: /traces
|
||||
upstream: http://localhost:16686
|
||||
agents:
|
||||
- id: test_agent
|
||||
description: a test agent
|
||||
|
||||
- type: model
|
||||
name: model_listener
|
||||
port: 12000
|
||||
|
||||
model_providers:
|
||||
- model: openai/gpt-4o
|
||||
access_key: $OPENAI_API_KEY
|
||||
|
||||
""",
|
||||
},
|
||||
{
|
||||
"id": "routes_only_listener",
|
||||
"expected_error": None,
|
||||
"plano_config": """
|
||||
version: v0.3.0
|
||||
|
||||
listeners:
|
||||
- type: agent
|
||||
name: observability
|
||||
port: 8002
|
||||
routes:
|
||||
- path_prefix: /traces
|
||||
upstream: http://localhost:16686
|
||||
- path_prefix: /metrics
|
||||
upstream: http://localhost:9090
|
||||
|
||||
- type: model
|
||||
name: model_listener
|
||||
port: 12000
|
||||
|
||||
model_providers:
|
||||
- model: openai/gpt-4o
|
||||
access_key: $OPENAI_API_KEY
|
||||
|
||||
""",
|
||||
},
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue