Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(claude): turns use the downloaded model catalog #31717

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/31717/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 90 additions and 42 deletions.

x
0 of 3 viewed, 3 left
71 additions and 35 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -93,6 +93,10 @@
import { ThreadToolkit } from "../../mcp/toolkits/thread/tools.ts";
import { OrchestratorToolkit } from "../../mcp/toolkits/orchestrator/tools.ts";
import { ClaudeExecutableFileCheck } from "../../provider/Drivers/ClaudeExecutable.ts";
+import {
+ BUNDLED_CLAUDE_MODEL_CATALOG,
+ type ClaudeModelCatalog,
+} from "../../provider/ClaudeModelCatalog.ts";
import * as ProviderEventLoggers from "@t3tools/provider-core/server/ProviderEventLoggers";
import * as ProviderAdapter from "@t3tools/provider-core/server/ProviderAdapter";
import type * as ProviderContinuationRequests from "@t3tools/provider-core/server/ProviderContinuationRequests";
@@ -3151,6 +3155,7 @@
readonly subagentLaunchToolUseId?: string;
readonly nativeSessionId?: string;
readonly settings?: ClaudeSettings;
+ readonly modelCatalog?: Effect.Effect<ClaudeModelCatalog>;
readonly freshQueueOnReopen?: boolean;
readonly forkSession?: ClaudeAdapterV2.ClaudeAgentSdkQueryRunnerShape["forkSession"];
readonly allocateSessionId?: Effect.Effect<string>;
@@ -3210,6 +3215,7 @@
const adapter = yield* ClaudeAdapterV2.makeClaudeAdapterV2({
instanceId: ClaudeAdapterV2.CLAUDE_DEFAULT_INSTANCE_ID,
settings: options?.settings ?? DEFAULT_CLAUDE_SETTINGS,
+ ...(options?.modelCatalog === undefined ? {} : { modelCatalog: options.modelCatalog }),
environment: options?.environment ?? {},
attachmentsDir,
fileSystem,