llama-stack-mirror/docs/source/providers
Matthew Farrellee 60bb5e307e
feat(openai): add configurable base_url support with OPENAI_BASE_URL env var (#2919)
# What does this PR do?

- 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.

Closes #2910 

## Test Plan

run unit tests
2025-07-28 10:16:02 -07:00
..
agents fix: store configs (#2593) 2025-07-03 10:07:23 -07:00
datasetio fix: store configs (#2593) 2025-07-03 10:07:23 -07:00
eval fix: store configs (#2593) 2025-07-03 10:07:23 -07:00
files docs: auto generated documentation for providers (#2543) 2025-06-30 15:13:20 +02:00
inference feat(openai): add configurable base_url support with OPENAI_BASE_URL env var (#2919) 2025-07-28 10:16:02 -07:00
post_training docs: Reorganize documentation on the webpage (#2651) 2025-07-15 14:19:35 -07:00
safety feat(starter)!: simplify starter distro; litellm model registry changes (#2916) 2025-07-25 15:02:04 -07:00
scoring fix: allow default empty vars for conditionals (#2570) 2025-07-01 14:42:05 +02:00
telemetry feat: improve telemetry (#2590) 2025-07-04 17:29:09 +02:00
tool_runtime fix: allow default empty vars for conditionals (#2570) 2025-07-01 14:42:05 +02:00
vector_io chore: Added openai compatible vector io endpoints for chromadb (#2489) 2025-07-23 13:51:58 -07:00
external.md docs: remove provider_id from external docs (#2922) 2025-07-28 10:14:39 -07:00
index.md docs: Reorganize documentation on the webpage (#2651) 2025-07-15 14:19:35 -07:00
openai.md docs: Reorganize documentation on the webpage (#2651) 2025-07-15 14:19:35 -07:00