feat: implement sendMessage

This commit is contained in:
2026-06-10 23:55:18 +09:00
parent c9865536a3
commit e281b8a38f
3 changed files with 733 additions and 11 deletions

View File

@@ -87,6 +87,19 @@ mock.module("@/config", () => ({
},
}));
mock.module("@/openrouter/embedding", () => ({
OpenRouterEmbeddingProvider: class {
model = "test-embed";
dimensions = 4;
async embed(_input: string): Promise<number[]> {
return [0, 0, 0, 0];
}
async embedMany(inputs: string[]): Promise<number[][]> {
return inputs.map(() => [0, 0, 0, 0]);
}
},
}));
const { runDebugBrainInit } = await import("./brain");
const { Brain: ProdBrain } = await import("@/brain");