You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: add api_token parameter to copy methods for legacy compatibility
The copy() method signatures were missing the api_token parameter that exists
in __init__(), causing test failures. Added api_token parameter to both sync
and async copy methods with proper handling for legacy compatibility.
Create a new client instance re-using the same options given to the current client with optional overriding.
352
353
"""
354
+
# Handle legacy api_token parameter
355
+
ifapi_tokenisnotNoneandbearer_tokenisnotNone:
356
+
raiseValueError("Cannot specify both 'bearer_token' and 'api_token'. Please use 'bearer_token' (recommended) or 'api_token' for legacy compatibility.")
Create a new client instance re-using the same options given to the current client with optional overriding.
740
748
"""
749
+
# Handle legacy api_token parameter
750
+
ifapi_tokenisnotNoneandbearer_tokenisnotNone:
751
+
raiseValueError("Cannot specify both 'bearer_token' and 'api_token'. Please use 'bearer_token' (recommended) or 'api_token' for legacy compatibility.")
0 commit comments