mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fix tests
This commit is contained in:
parent
77e3d9e6f6
commit
2302245bc1
2 changed files with 7 additions and 12 deletions
|
|
@ -128,7 +128,7 @@ def convert_legacy_listeners(
|
|||
|
||||
model_provider_set = False
|
||||
for listener in listeners:
|
||||
if listener.get("type") == "model_listener":
|
||||
if listener.get("type") == "model":
|
||||
if model_provider_set:
|
||||
raise ValueError(
|
||||
"Currently only one listener can have model_providers set"
|
||||
|
|
|
|||
|
|
@ -37,14 +37,6 @@ listeners:
|
|||
port: 8001
|
||||
router: plano_orchestrator_v1
|
||||
type: agent
|
||||
- address: 0.0.0.0
|
||||
name: model_1
|
||||
port: 12000
|
||||
type: model
|
||||
- address: 0.0.0.0
|
||||
name: prompt_function_listener
|
||||
port: 10000
|
||||
type: prompt
|
||||
- address: 0.0.0.0
|
||||
model_providers:
|
||||
- access_key: $OPENAI_API_KEY
|
||||
|
|
@ -73,10 +65,13 @@ listeners:
|
|||
port: 443
|
||||
protocol: https
|
||||
provider_interface: openai
|
||||
name: egress_traffic
|
||||
name: model_1
|
||||
port: 12000
|
||||
timeout: 30s
|
||||
type: model_listener
|
||||
type: model
|
||||
- address: 0.0.0.0
|
||||
name: prompt_function_listener
|
||||
port: 10000
|
||||
type: prompt
|
||||
model_aliases:
|
||||
fast-llm:
|
||||
target: gpt-4o-mini
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue