We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53bdacc commit 4bb9693Copy full SHA for 4bb9693
src/humanloop/cli/__main__.py
@@ -28,7 +28,13 @@
28
MAX_FILES_TO_DISPLAY = 10
29
30
def get_client(api_key: Optional[str] = None, env_file: Optional[str] = None, base_url: Optional[str] = None) -> Humanloop:
31
- """Get a Humanloop client instance."""
+ """Get a Humanloop client instance.
32
+
33
+ If no API key is provided, it will be loaded from the .env file, or the environment variable HUMANLOOP_API_KEY.
34
35
+ Raises:
36
+ click.ClickException: If no API key is found.
37
+ """
38
if not api_key:
39
if env_file:
40
load_dotenv(env_file)
0 commit comments