mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
* cleaning up plano cli commands * adding support for wildcard model providers * fixing compile errors * fixing bugs related to default model provider, provider hint and duplicates in the model provider list * fixed cargo fmt issues * updating tests to always include the model id * using default for the prompt_gateway path * fixed the model name, as gpt-5-mini-2025-08-07 wasn't in the config * making sure that all aliases and models match the config * fixed the config generator to allow for base_url providers LLMs to include wildcard models * re-ran the models list utility and added a shell script to run it * updating docs to mention wildcard model providers * updated provider_models.json to yaml, added that file to our docs for reference * updating the build docs to use the new root-based build --------- Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-342.local>
47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Function to start the demo
|
|
start_demo() {
|
|
# Step 1: Check if .env file exists
|
|
if [ -f ".env" ]; then
|
|
echo ".env file already exists. Skipping creation."
|
|
else
|
|
# Step 2: Create `.env` file and set OpenAI key
|
|
if [ -z "$OPENAI_API_KEY" ]; then
|
|
echo "Error: OPENAI_API_KEY environment variable is not set for the demo."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Creating .env file..."
|
|
echo "OPENAI_API_KEY=$OPENAI_API_KEY" > .env
|
|
echo ".env file created with OPENAI_API_KEY."
|
|
fi
|
|
|
|
# Step 3: Start Plano
|
|
echo "Starting Plano with config.yaml..."
|
|
planoai up config.yaml
|
|
|
|
# Step 4: Start developer services
|
|
echo "Starting Network Agent using Docker Compose..."
|
|
docker compose up -d # Run in detached mode
|
|
}
|
|
|
|
# Function to stop the demo
|
|
stop_demo() {
|
|
# Step 1: Stop Docker Compose services
|
|
echo "Stopping Network Agent using Docker Compose..."
|
|
docker compose down
|
|
|
|
# Step 2: Stop Plano
|
|
echo "Stopping Plano..."
|
|
planoai down
|
|
}
|
|
|
|
# Main script logic
|
|
if [ "$1" == "down" ]; then
|
|
stop_demo
|
|
else
|
|
# Default action is to bring the demo up
|
|
start_demo
|
|
fi
|