Skip to content

Commit bb8bbaa

Browse files
committed
Patch 3d generation plugin
1 parent 0535642 commit bb8bbaa

File tree

1 file changed

+3
-2
lines changed
  • packages/usdk/packages/upstreet-agent/packages/react-agents/components/plugins/plugin-3d-generation/src

1 file changed

+3
-2
lines changed

packages/usdk/packages/upstreet-agent/packages/react-agents/components/plugins/plugin-3d-generation/src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ import { FAL_CONSTANTS } from "./constants";
1313
import * as fs from 'fs';
1414
import { Buffer } from 'buffer';
1515
import * as path from 'path';
16-
import * as process from 'process';
1716

1817
const generate3D = async (prompt: string, runtime: IAgentRuntime) => {
19-
process.env['FAL_KEY'] = FAL_CONSTANTS.API_KEY_SETTING || runtime.getSetting("FAL_API_KEY");
18+
fal.config({
19+
credentials: runtime.getSetting("FAL_API_KEY"),
20+
});
2021

2122
try {
2223
elizaLogger.log("Starting 3D generation with prompt:", prompt);

0 commit comments

Comments
 (0)