llama-stack-mirror/llama_stack/templates/open-benchmark
Matthew Farrellee 79c9e46582 feat(openai): add configurable base_url support with OPENAI_BASE_URL env var
- Add base_url field to OpenAIConfig with default "https://api.openai.com/v1"
- Update sample_run_config to support OPENAI_BASE_URL environment variable
- Modify get_base_url() to return configured base_url instead of hardcoded value
- Add comprehensive test suite covering:
  - Default base URL behavior
  - Custom base URL from config
  - Environment variable override
  - Config precedence over environment variables
  - Client initialization with configured URL
  - Model availability checks using configured URL

This enables users to configure custom OpenAI-compatible API endpoints
via environment variables or configuration files.
2025-07-26 06:04:00 -04:00
..
__init__.py feat: Add open benchmark template codegen (#1579) 2025-03-12 11:12:08 -07:00
build.yaml fix: separate build and run provider types (#2917) 2025-07-25 12:39:26 -07:00
open_benchmark.py fix: separate build and run provider types (#2917) 2025-07-25 12:39:26 -07:00
run.yaml feat(openai): add configurable base_url support with OPENAI_BASE_URL env var 2025-07-26 06:04:00 -04:00