Skip to content
Source
Sign inSign up
pingdotgg/t3code

Add Claude Opus 5 model #4472

Mergedthomaslittle(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/4472/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 5 changed files with 137 additions and 6 deletions (loading 2).

x
0 of 5 viewed, 5 left
23 additions and 0 deletionsapps/server/src/provider/Layers/ClaudeAdapter.test.tsModified
View file
@@ -530,6 +530,29 @@
});
​
+ it.effect("preserves xhigh effort for Claude Opus 5", () => {
+ const harness = makeHarness();
+ return Effect.gen(function* () {
+ const adapter = yield* ClaudeAdapter;
+ yield* adapter.startSession({
+ threadId: THREAD_ID,
+ provider: ProviderDriverKind.make("claudeAgent"),
+ modelSelection: createModelSelection(
+ ProviderInstanceId.make("claudeAgent"),
+ "claude-opus-5",
+ [{ id: "effort", value: "xhigh" }],
+ ),
+ runtimeMode: "full-access",
+ });
+​
+ const createInput = harness.getLastCreateQueryInput();
+ assert.equal(createInput?.options.effort, "xhigh");
+ }).pipe(
+ Effect.provideService(Random.Random, makeDeterministicRandomService()),
+ Effect.provide(harness.layer),
+ );
+ });
+​
it.effect("falls back to default effort when unsupported max is requested for Sonnet 4.6", () => {
const harness = makeHarness();
return Effect.gen(function* () {