Skip to content

Commit

Permalink
use logical or insteal of nullish coalecing operator in apikey check
Browse files Browse the repository at this point in the history
  • Loading branch information
HaruHunab1320 committed Aug 15, 2024
1 parent f1b3a73 commit 89d8ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugins/knowledge/src/knowledgePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const KnowledgePlugin = createSimplePluginClass({
const apiKey = process.env.AGENT_EMBEDDER_API_KEY
return {
[CORE_DEP_KEYS.EMBEDDER_CLIENT]: makeEmbedderClient(
apiKey ??
apiKey ||
generateToken({
owner: plugin.projectId,
entity: plugin.projectId,
Expand Down

0 comments on commit 89d8ac5

Please sign in to comment.