@@ -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