mirror of
https://github.com/katanemo/plano.git
synced 2026-06-08 14:55:14 +02:00
Run plano natively by default (#744)
This commit is contained in:
parent
198c912202
commit
f63d5de02c
56 changed files with 1557 additions and 256 deletions
11
tests/e2e/config_native_smoke.yaml
Normal file
11
tests/e2e/config_native_smoke.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
version: v0.3.0
|
||||
|
||||
listeners:
|
||||
- type: model
|
||||
name: model_listener
|
||||
port: 12000
|
||||
|
||||
model_providers:
|
||||
- model: openai/gpt-4o
|
||||
access_key: $OPENAI_API_KEY
|
||||
default: true
|
||||
|
|
@ -45,8 +45,8 @@ uv sync
|
|||
|
||||
log startup plano gateway with function calling demo
|
||||
cd ../../
|
||||
planoai down
|
||||
planoai up demos/getting_started/weather_forecast/config.yaml
|
||||
planoai down --docker
|
||||
planoai up --docker demos/getting_started/weather_forecast/config.yaml
|
||||
cd -
|
||||
|
||||
log running e2e tests for prompt gateway
|
||||
|
|
@ -55,11 +55,11 @@ uv run pytest test_prompt_gateway.py
|
|||
|
||||
log shutting down the plano gateway service for prompt_gateway demo
|
||||
log ===============================================================
|
||||
planoai down
|
||||
planoai down --docker
|
||||
|
||||
log startup plano gateway with model alias routing demo
|
||||
cd ../../
|
||||
planoai up demos/llm_routing/model_alias_routing/config_with_aliases.yaml
|
||||
planoai up --docker demos/llm_routing/model_alias_routing/config_with_aliases.yaml
|
||||
cd -
|
||||
|
||||
log running e2e tests for model alias routing
|
||||
|
|
@ -71,8 +71,8 @@ log ========================================
|
|||
uv run pytest test_openai_responses_api_client.py
|
||||
|
||||
log startup plano gateway with state storage for openai responses api client demo
|
||||
planoai down
|
||||
planoai up config_memory_state_v1_responses.yaml
|
||||
planoai down --docker
|
||||
planoai up --docker config_memory_state_v1_responses.yaml
|
||||
|
||||
log running e2e tests for openai responses api client
|
||||
log ========================================
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ uv sync
|
|||
# Start gateway with model alias routing config
|
||||
log "startup plano gateway with model alias routing demo"
|
||||
cd ../../
|
||||
planoai down || true
|
||||
planoai up demos/llm_routing/model_alias_routing/config_with_aliases.yaml
|
||||
planoai down --docker || true
|
||||
planoai up --docker demos/llm_routing/model_alias_routing/config_with_aliases.yaml
|
||||
cd -
|
||||
|
||||
# Run both test suites that share this config in a single pytest invocation
|
||||
|
|
@ -46,4 +46,4 @@ uv run pytest -n auto test_model_alias_routing.py test_openai_responses_api_clie
|
|||
|
||||
# Cleanup
|
||||
log "shutting down"
|
||||
planoai down || true
|
||||
planoai down --docker || true
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ cd -
|
|||
# Start gateway with prompt_gateway config
|
||||
log "startup plano gateway with function calling demo"
|
||||
cd ../../
|
||||
planoai down || true
|
||||
planoai up demos/getting_started/weather_forecast/config.yaml
|
||||
planoai down --docker || true
|
||||
planoai up --docker demos/getting_started/weather_forecast/config.yaml
|
||||
cd -
|
||||
|
||||
# Run tests
|
||||
|
|
@ -51,7 +51,7 @@ uv run pytest test_prompt_gateway.py
|
|||
|
||||
# Cleanup
|
||||
log "shutting down"
|
||||
planoai down || true
|
||||
planoai down --docker || true
|
||||
cd ../../demos/getting_started/weather_forecast
|
||||
docker compose down
|
||||
cd -
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ uv sync
|
|||
# Start gateway with state storage config
|
||||
log "startup plano gateway with state storage config"
|
||||
cd ../../
|
||||
planoai down || true
|
||||
planoai up tests/e2e/config_memory_state_v1_responses.yaml
|
||||
planoai down --docker || true
|
||||
planoai up --docker tests/e2e/config_memory_state_v1_responses.yaml
|
||||
cd -
|
||||
|
||||
# Run tests
|
||||
|
|
@ -45,4 +45,4 @@ uv run pytest test_openai_responses_api_client_with_state.py
|
|||
|
||||
# Cleanup
|
||||
log "shutting down"
|
||||
planoai down || true
|
||||
planoai down --docker || true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue