Skip to content

Commit 0d986f6

Browse files
lincheollwtfsayo
andauthored
fix:Incorrect boolean parsing for ENABLE_OPEN_AI_COMMUNITY_PLUGIN setting #2559 (#2560)
* fix: Incorrect boolean parsing for ENABLE_OPEN_AI_COMMUNITY_PLUGIN setting #2559 * fix: boolean parsing for openai plugin (#2559) --------- Co-authored-by: Sayo <hi@sayo.wtf>
1 parent 4b78912 commit 0d986f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ export async function createAgent(
10871087
? lightningPlugin
10881088
: null,
10891089
getSecret(character, "OPENAI_API_KEY") &&
1090-
getSecret(character, "ENABLE_OPEN_AI_COMMUNITY_PLUGIN")
1090+
parseBooleanFromText(getSecret(character, "ENABLE_OPEN_AI_COMMUNITY_PLUGIN"))
10911091
? openaiPlugin
10921092
: null,
10931093
getSecret(character, "DEVIN_API_TOKEN")

0 commit comments

Comments
 (0)