We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2a08c4 commit 4100e2dCopy full SHA for 4100e2d
optimum/exporters/openvino/__main__.py
@@ -141,6 +141,17 @@ def main_export(
141
```
142
"""
143
144
+ if use_auth_token is not None:
145
+ logger.warning(
146
+ "The `use_auth_token` argument is deprecated and will be removed soon. "
147
+ "Please use the `token` argument instead."
148
+ )
149
+ if token is not None:
150
+ raise ValueError("You cannot use both `use_auth_token` and `token` arguments at the same time.")
151
+
152
+ token = use_auth_token
153
+ use_auth_token = None
154
155
if compression_option is not None:
156
logger.warning(
157
"The `compression_option` argument is deprecated and will be removed in optimum-intel v1.17.0. "
0 commit comments