mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
fix(embeddings): use ?? for decayRate and driftThreshold defaults in embeddings_neural init
This commit is contained in:
1 parent
f35a94aca0
commit
89e5637f88
1 file changed
+3
-2
@@ -621,8 +621,9 @@ export const embeddingsTools: MCPTool[] = [
|
||||
case 'init':
|
||||
config.neural = {
|
||||
enabled: true,
|
||||
driftThreshold: (input.driftThreshold as number) || 0.3,
|
||||
decayRate: (input.decayRate as number) || 0.01,
|
||||
// `??`, not `||`: an explicit 0 is a valid value for both.
|
||||
driftThreshold: (input.driftThreshold as number) ?? 0.3,
|
||||
decayRate: (input.decayRate as number) ?? 0.01,
|
||||
ruvector: {
|
||||
enabled: true,
|
||||
sona: true,
|
||||
|
||||
Reference in new issue
Block a user