Skip to content

Commit 727d044

Browse files
author
Yue Deng
committed
fix https
1 parent 6680b45 commit 727d044

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/miroflow/src/miroflow/llm/providers/claude_anthropic_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def _create_client(self, config: DictConfig):
4141
trace_id = get_trace_id()
4242
if trace_id is not None:
4343
http_client_args["headers"] = {"trace-id": trace_id}
44-
if not OmegaConf.is_missing(config, "https_proxy"):
45-
http_client_args["proxy"] = config.env.https_proxy
44+
if (proxy := config.get("env.https_proxy", "???")) != "???":
45+
http_client_args["proxy"] = proxy
4646
logger.debug(f"Info: Using proxy {http_client_args['proxy']}")
4747

4848
if self.async_client:

0 commit comments

Comments
 (0)