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.
2 parents 65d9c72 + cba49d2 commit abfb6a7Copy full SHA for abfb6a7
packages/core/src/Components/ImageGenerator.class.ts
@@ -262,6 +262,10 @@ const imageGenerator = {
262
const teamId = agent.teamId;
263
const apiKey = (await getCredentials(AccessCandidate.team(teamId), 'runware')) as string;
264
265
+ if (!apiKey) {
266
+ throw new Error('Runware API key is missing. Please provide a valid key to continue.');
267
+ }
268
+
269
const runware = new Runware({ apiKey });
270
await runware.ensureConnection();
271
0 commit comments