Skip to content

Commit d853eba

Browse files
authored
fix: update AI env vars (#313)
1 parent 1a49fd2 commit d853eba

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

docs/environment-variables.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -719,15 +719,8 @@ When set to false, nodes rely on slower failure detection mechanisms and continu
719719
| Environment Variable | Default Value | Description |
720720
|---------------------|---------------|-------------|
721721
| O2_AI_ENABLED | false | Enables AI-powered features such as query assistance, anomaly detection, and root cause analysis. Requires o2-sre-agent to be deployed. |
722-
| O2_AI_PROVIDER | - | AI provider name for direct API calls (used only when gateway is not enabled). Supported values: anthropic, openai, bedrock, or other compatible providers. |
723-
| O2_AI_MODEL | - | AI model identifier to use for AI requests. The value depends on the provider (e.g., claude-sonnet-4-5-20250929 for Anthropic, gpt-4 for OpenAI). |
724-
| O2_AI_API_KEY | - | Authentication API key for accessing the AI service. Required for AI features. |
725-
| O2_AI_GATEWAY_ENABLED | - | Set to "true" to route AI requests through an AI Gateway instead of direct provider API calls. |
726-
| O2_AI_GATEWAY_URL | - | URL of the AI Gateway service (e.g., http://my-gateway:80). When specified, all AI requests are routed through this gateway. |
727-
| O2_AGENT_URL | - | URL endpoint for the o2-sre-agent service. Auto-generated when sreagent is enabled. Example: http://o2-sre-agent:8000 |
728722
| O2_TOOL_API_URL | - | URL for OpenObserve API that AI agent can use for tool calls. Auto-generated to point to router service. Example: http://o2-openobserve-router:5080 |
729-
| O2_MCP_USERNAME | - | Username for MCP (Model Context Protocol) authentication with o2-sre-agent. Optional. |
730-
| O2_MCP_PASSWORD | - | Password for MCP (Model Context Protocol) authentication with o2-sre-agent. Optional. |
723+
| O2_AGENT_URL | - | URL endpoint for the o2-sre-agent service. Auto-generated when sreagent is enabled. Example: http://o2-sre-agent:8000 |
731724

732725
## SRE Agent Configuration
733726

@@ -738,6 +731,14 @@ When set to false, nodes rely on slower failure detection mechanisms and continu
738731
| O2_SRE_HOST | 0.0.0.0 | Host address for the o2-sre-agent service to bind to. |
739732
| O2_SRE_PORT | 8000 | Port number for the o2-sre-agent service. |
740733
| O2_SRE_LOG_LEVEL | INFO | Logging level for o2-sre-agent. Supported values: DEBUG, INFO, WARNING, ERROR |
734+
| O2_AI_PROVIDER | - | AI provider name for direct API calls (used only when gateway is not enabled). Supported values: anthropic, openai, bedrock, or other compatible providers. |
735+
| O2_AI_MODEL | - | AI model identifier to use for AI requests. The value depends on the provider (e.g., claude-sonnet-4-5-20250929 for Anthropic, gpt-4 for OpenAI). |
736+
| O2_AI_API_KEY | - | Authentication API key for accessing the AI service. Required for AI features. |
737+
| O2_AI_GATEWAY_ENABLED | false | Set to "true" to route AI requests through an AI Gateway instead of direct provider API calls. |
738+
| O2_AI_GATEWAY_TIMEOUT | 120 | Request timeout for gateway requests in seconds |
739+
| O2_AI_GATEWAY_URL | - | URL of the AI Gateway service (e.g., http://my-gateway:80). When specified, all AI requests are routed through this gateway. |
740+
| O2_MCP_USERNAME | - | Username for MCP (Model Context Protocol) authentication with o2-sre-agent. Optional. |
741+
| O2_MCP_PASSWORD | - | Password for MCP (Model Context Protocol) authentication with o2-sre-agent. Optional. |
741742
| O2_MCP_VALIDATION_ENABLED | true | Enables Model Context Protocol (MCP) validation for AI requests. |
742743
| O2_MCP_VALIDATION_RETRY | true | Enables retry mechanism for failed MCP validation. |
743744
| O2_MCP_CONTENT_VALIDATION_ENABLED | true | Enables content validation for MCP requests and responses. |

0 commit comments

Comments
 (0)