Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions inference-platforms/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ async def run_agent(tools: list[Tool]):


async def main():
mcp_url = os.getenv("MCP_URL", "https://mcp.kiwi.com")
async with MCPServerStreamableHttp(
{
"url": mcp_url,
"url": os.getenv("MCP_URL", "https://mcp.kiwi.com"),
"headers": dict(h.split("=", 1) for h in os.getenv("MCP_HEADERS", "").split(",") if h),
"timeout": 30.0,
},
client_session_timeout_seconds=60.0,
Expand Down
3 changes: 1 addition & 2 deletions inference-platforms/aigw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ Start Ollama and your OpenTelemetry Collector via this repository's [README](../
## Run Envoy AI Gateway

```bash
docker compose pull
docker compose up --force-recreate --remove-orphans
docker compose up --force-recreate --pull always --remove-orphans --wait -d
```

Clean up when finished, like this:
Expand Down
1 change: 1 addition & 0 deletions inference-platforms/aigw/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ services:
env_file:
- env.local
environment:
- OTEL_SERVICE_NAME=aigw
- OPENAI_BASE_URL=http://host.docker.internal:11434/v1
- OTEL_EXPORTER_OTLP_ENDPOINT=http://host.docker.internal:4318
ports:
Expand Down
6 changes: 5 additions & 1 deletion inference-platforms/aigw/env.local
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ OPENAI_API_KEY=unused
CHAT_MODEL=qwen3:0.6b
AGENT_MODEL=qwen3:1.7b

# Override as necessary for MCP proxying
MCP_URL=https://mcp.kiwi.com
MCP_HEADERS=

# OpenTelemetry configuration
OTEL_SERVICE_NAME=aigw
OTEL_SERVICE_NAME=openai-agent
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_TRACES_EXPORTER=otlp
Expand Down