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
Copy file name to clipboardExpand all lines: src/together/lib/cli/__init__.py
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,14 @@ def main(
63
63
os.environ.setdefault("TOGETHER_LOG", "debug")
64
64
setup_logging() # Must run this again here to allow the new logging configuration to take effect
65
65
66
+
ifapi_key=="":
67
+
click.secho(
68
+
"Error: api key missing.\n\nThe api_key must be set either by passing --api-key to the command or by setting the TOGETHER_API_KEY environment variable",
69
+
fg="red",
70
+
)
71
+
click.secho("\nYou can find your api key at https://api.together.xyz/settings/api-keys", fg="yellow")
0 commit comments