We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8acdb2 commit 900f47fCopy full SHA for 900f47f
replicate/client.py
@@ -352,6 +352,11 @@ def _get_api_token_from_environment() -> Optional[str]:
352
"""Get API token from cog current scope if available, otherwise from environment."""
353
try:
354
import cog # noqa: I001 # pyright: ignore [reportMissingImports]
355
+ import warnings
356
+
357
+ warnings.filterwarnings(
358
+ "ignore", message="current_scope", category=cog.ExperimentalFeatureWarning
359
+ )
360
361
for key, value in cog.current_scope().context.items():
362
if key.upper() == "REPLICATE_API_TOKEN":
0 commit comments