Skip to content

Commit cb3ecdb

Browse files
fix: remove redundant validateApiKey call, fix formatting
1 parent 9733adc commit cb3ecdb

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

packages/tools/src/voltagent/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* @module
88
*/
99

10-
import { validateApiKey } from "../shared"
1110
import { createSupermemoryHooks, mergeHooks } from "./hooks"
1211
import type { VoltAgentConfig, SupermemoryVoltAgent } from "./types"
1312

@@ -139,10 +138,7 @@ export function withSupermemory<T extends VoltAgentConfig>(
139138
): T {
140139
const { containerTag, ...supermemoryOptions } = options
141140

142-
// Validate API key
143-
validateApiKey(supermemoryOptions.apiKey)
144-
145-
// Create Supermemory hooks (internally creates its own context)
141+
// Create Supermemory hooks (internally creates its own context, validates API key)
146142
const supermemoryHooks = createSupermemoryHooks(
147143
containerTag,
148144
supermemoryOptions,

packages/tools/src/voltagent/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export interface SupermemoryVoltAgent
6060
*/
6161
include?: IncludeOptions
6262

63-
6463
/**
6564
* Optional metadata to attach to saved documents/conversations.
6665
* Can include strings, numbers, or booleans.

0 commit comments

Comments
 (0)