Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(claude): profile custom model effort #8964

Closedmimen(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/8964/headopened View on GitHub

Showing 16 changed files with 115 additions and 33 deletions (loading 13).

x
0 of 16 viewed, 16 left
64 additions and 0 deletionsapps/server/src/provider/Layers/ClaudeAdapter.test.tsModified
View file
@@ -489,6 +489,70 @@
});
​
+ it.effect("forwards custom model effort into query options", () => {
+ const harness = makeHarness({
+ claudeConfig: {
+ customModels: ["custom-model"],
+ customModelProfiles: {
+ "custom-model": {
+ capabilities: { reasoning: { levels: ["xhigh", "max"] } },
+ },
+ },
+ },
+ });
+​
+ return Effect.gen(function* () {
+ const adapter = yield* ClaudeAdapter;
+ yield* adapter.startSession({
+ threadId: THREAD_ID,
+ provider: ProviderDriverKind.make("claudeAgent"),
+ modelSelection: createModelSelection(
+ ProviderInstanceId.make("claudeAgent"),
+ "custom-model",
+ [{ id: "effort", value: "max" }],
+ ),
+ runtimeMode: "full-access",
+ });
+​
+ assert.equal(harness.getLastCreateQueryInput()?.options.effort, "max");