mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-07T04:11:19Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c0355ae508
commit
2e79526c1f
1 file changed
+11
-4
@@ -432,10 +432,17 @@ export class MockEmbeddingService extends BaseEmbeddingService {
|
||||
private readonly dimensions: number;
|
||||
private readonly simulatedLatency: number;
|
||||
|
||||
constructor(config: MockEmbeddingConfig) {
|
||||
super(config);
|
||||
this.dimensions = config.dimensions ?? 384;
|
||||
this.simulatedLatency = config.simulatedLatency ?? 0;
|
||||
constructor(config: Partial<MockEmbeddingConfig> = {}) {
|
||||
const fullConfig: MockEmbeddingConfig = {
|
||||
provider: 'mock',
|
||||
dimensions: config.dimensions ?? 384,
|
||||
cacheSize: config.cacheSize ?? 1000,
|
||||
simulatedLatency: config.simulatedLatency ?? 0,
|
||||
enableCache: config.enableCache ?? true,
|
||||
};
|
||||
super(fullConfig);
|
||||
this.dimensions = fullConfig.dimensions!;
|
||||
this.simulatedLatency = fullConfig.simulatedLatency!;
|
||||
}
|
||||
|
||||
async embed(text: string): Promise<EmbeddingResult> {
|
||||
|
||||
Reference in new issue
Block a user