Skip to content
Source
Sign inSign up
pingdotgg/t3code

Expose reasoning effort for custom Claude models #4194

ClosedIsraelAraujo70(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/4194/headopened View on GitHub

Showing 8 changed files with 115 additions and 10 deletions (loading 5).

x
0 of 8 viewed, 8 left
18 additions and 8 deletionsapps/server/src/provider/Drivers/ClaudeDriver.tsModified
View file
@@ -30,6 +30,7 @@
import { makeClaudeAdapter } from "../Layers/ClaudeAdapter.ts";
import {
checkClaudeProviderStatus,
+ getClaudeModelCapabilities,
makePendingClaudeProvider,
probeClaudeCapabilities,
} from "../Layers/ClaudeProvider.ts";
@@ -141,14 +142,6 @@
continuationGroupKey,
});
​
- const adapterOptions = {
- instanceId,
- environment: processEnv,
- ...(eventLoggers.native ? { nativeEventLogger: eventLoggers.native } : {}),
- };
- const adapter = yield* makeClaudeAdapter(effectiveConfig, adapterOptions);
- const textGeneration = yield* makeClaudeTextGeneration(effectiveConfig, processEnv);
-​
// Per-instance capabilities cache: keyed on binary + resolved HOME so
// account-specific probes never share auth metadata across instances.
const capabilitiesProbeCache = yield* Cache.make({
@@ -160,6 +153,23 @@
});
const capabilitiesCacheKey = yield* makeClaudeCapabilitiesCacheKey(effectiveConfig, cwd);
+ const resolveModelCapabilities = (model: string | null | undefined) =>