Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(providers): switch accounts mid-thread and track usage limits #9181

Closedtamimbinhakim(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/9181/headopened View on GitHub

Showing 30 changed files with 21 additions and 0 deletions (loading 27).

x
0 of 30 viewed, 30 left
6 additions and 0 deletionsapps/server/integration/OrchestrationEngineHarness.integration.tsModified
View file
@@ -58,6 +58,7 @@
import { RuntimeReceiptBusTest } from "../src/orchestration/Layers/RuntimeReceiptBus.ts";
import { OrchestrationReactorLive } from "../src/orchestration/Layers/OrchestrationReactor.ts";
import { ProviderCommandReactorLive } from "../src/orchestration/Layers/ProviderCommandReactor.ts";
+import * as ProviderAccountSwitchReactor from "../src/orchestration/ProviderAccountSwitchReactor.ts";
import { ProviderRuntimeIngestionLive } from "../src/orchestration/Layers/ProviderRuntimeIngestion.ts";
import { CheckpointReactor } from "../src/orchestration/Services/CheckpointReactor.ts";
import { ProviderRuntimeIngestionService } from "../src/orchestration/Services/ProviderRuntimeIngestion.ts";
@@ -347,6 +348,10 @@
Layer.provideMerge(textGenerationLayer),
Layer.provideMerge(serverSettingsLayer),
+ const providerAccountSwitchReactorLayer = ProviderAccountSwitchReactor.layer.pipe(
+ Layer.provideMerge(runtimeServicesLayer),
+ Layer.provideMerge(serverSettingsLayer),
+ );
const checkpointReactorLayer = CheckpointReactorLive.pipe(
Layer.provideMerge(runtimeServicesLayer),
Layer.provideMerge(
@@ -385,6 +390,7 @@
const orchestrationReactorLayer = OrchestrationReactorLive.pipe(
Layer.provideMerge(runtimeIngestionLayer),
Layer.provideMerge(providerCommandReactorLayer),
+ Layer.provideMerge(providerAccountSwitchReactorLayer),
Layer.provideMerge(checkpointReactorLayer),
Layer.provideMerge(
Layer.succeed(ThreadDeletionReactor, {