@@ -633,23 +633,11 @@ def copy(
633633
634634 http_client = http_client or self ._client
635635 client = self .__class__ (
636- << << << < HEAD
637- api_key = api_key or self .api_key ,
638- inference_key = inference_key or self .inference_key ,
639- agent_key = agent_key or self .agent_key ,
640- agent_endpoint = agent_endpoint or self ._agent_endpoint ,
641- | | | | | | | eb1dcf7
642- api_key = api_key or self .api_key ,
643- inference_key = inference_key or self .inference_key ,
644- agent_key = agent_key or self .agent_key ,
645- agent_domain = agent_domain or self .agent_domain ,
646- == == == =
647- access_token = access_token or self .access_token ,
648- model_access_key = model_access_key or self .model_access_key ,
649- agent_access_key = agent_access_key or self .agent_access_key ,
636+ access_token = access_token or api_key or self .access_token ,
637+ model_access_key = model_access_key or inference_key or self .model_access_key ,
638+ agent_access_key = agent_access_key or agent_key or self .agent_access_key ,
650639 agent_endpoint = agent_endpoint or self .agent_endpoint ,
651640 inference_endpoint = inference_endpoint or self .inference_endpoint ,
652- >> >> >> > origin / generated - - merge - conflict
653641 base_url = base_url or self .base_url ,
654642 timeout = self .timeout if isinstance (timeout , NotGiven ) else timeout ,
655643 http_client = http_client ,
0 commit comments