Skip to content
Closed
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
1 change: 1 addition & 0 deletions agent/auxiliary_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2113,6 +2113,7 @@ def _wrap_if_needed(client_obj, final_model_str: str, base_url_str: str = "",
custom_key = (
(explicit_api_key or "").strip()
or os.getenv("OPENAI_API_KEY", "").strip()
or (main_runtime.get("api_key", "").strip() if main_runtime else "")
or "no-key-required" # local servers don't need auth
)
if not custom_base:
Expand Down
Loading