Skip to content

Commit 4bd6ace

Browse files
committed
fix: use of cached variable in internals
1 parent 68daceb commit 4bd6ace

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gradient/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def copy(
329329
access_token=access_token or api_key or self.access_token,
330330
model_access_key=model_access_key or inference_key or self.model_access_key,
331331
agent_access_key=agent_access_key or agent_key or self.agent_access_key,
332-
agent_endpoint=agent_endpoint or self.agent_endpoint,
332+
agent_endpoint=agent_endpoint or self._agent_endpoint,
333333
inference_endpoint=inference_endpoint or self.inference_endpoint,
334334
base_url=base_url or self.base_url,
335335
timeout=self.timeout if isinstance(timeout, NotGiven) else timeout,
@@ -641,7 +641,7 @@ def copy(
641641
access_token=access_token or api_key or self.access_token,
642642
model_access_key=model_access_key or inference_key or self.model_access_key,
643643
agent_access_key=agent_access_key or agent_key or self.agent_access_key,
644-
agent_endpoint=agent_endpoint or self.agent_endpoint,
644+
agent_endpoint=agent_endpoint or self._agent_endpoint,
645645
inference_endpoint=inference_endpoint or self.inference_endpoint,
646646
base_url=base_url or self.base_url,
647647
timeout=self.timeout if isinstance(timeout, NotGiven) else timeout,

0 commit comments

Comments
 (0)