Skip to content
Open
Changes from 1 commit
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: 4 additions & 0 deletions hud/cli/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ def get_agent_kwargs(self) -> dict[str, Any]:
)
hud_console.info("🌐 Using HUD Gateway for OpenAI-compatible API")
elif self.agent_type in (AgentType.GEMINI, AgentType.GEMINI_CUA):
import httpx
from google import genai
from google.genai.types import HttpOptions

Expand All @@ -371,6 +372,9 @@ def get_agent_kwargs(self) -> dict[str, Any]:
api_version="v1beta",
base_url=settings.hud_gateway_url,
headers={"Authorization": f"Bearer {hud_api_key}"},
# Important: By default this uses aiohttp, but
# we use an httpx hook for injecting Trace-Id
httpx_async_client=httpx.AsyncClient(),
),
)
hud_console.info("🌐 Using HUD Gateway for Gemini API")
Expand Down
Loading