Skip to content

Commit 3c31d04

Browse files
authored
chore: bump anthropic ai sdk pkg, delete patch (#21247)
1 parent e64548f commit 3c31d04

File tree

5 files changed

+9
-129
lines changed

5 files changed

+9
-129
lines changed

bun.lock

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
},
119119
"patchedDependencies": {
120120
"@standard-community/standard-openapi@0.2.9": "patches/@standard-community%2Fstandard-openapi@0.2.9.patch",
121-
"solid-js@1.9.10": "patches/solid-js@1.9.10.patch",
122-
"@ai-sdk/anthropic@3.0.64": "patches/@ai-sdk%2Fanthropic@3.0.64.patch"
121+
"solid-js@1.9.10": "patches/solid-js@1.9.10.patch"
123122
}
124123
}

packages/opencode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"@actions/github": "6.0.1",
8080
"@agentclientprotocol/sdk": "0.16.1",
8181
"@ai-sdk/amazon-bedrock": "4.0.83",
82-
"@ai-sdk/anthropic": "3.0.64",
82+
"@ai-sdk/anthropic": "3.0.67",
8383
"@ai-sdk/azure": "3.0.49",
8484
"@ai-sdk/cerebras": "2.0.41",
8585
"@ai-sdk/cohere": "3.0.27",

packages/opencode/test/session/llm.test.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -872,16 +872,15 @@ describe("session.llm.stream", () => {
872872
})
873873
})
874874

875-
test("sends messages API payload for Anthropic models", async () => {
875+
test("sends messages API payload for Anthropic Compatible models", async () => {
876876
const server = state.server
877877
if (!server) {
878878
throw new Error("Server not initialized")
879879
}
880880

881-
const providerID = "anthropic"
882-
const modelID = "claude-3-5-sonnet-20241022"
881+
const providerID = "minimax"
882+
const modelID = "MiniMax-M2.5"
883883
const fixture = await loadFixture(providerID, modelID)
884-
const provider = fixture.provider
885884
const model = fixture.model
886885

887886
const chunks = [
@@ -962,7 +961,7 @@ describe("session.llm.stream", () => {
962961
role: "user",
963962
time: { created: Date.now() },
964963
agent: agent.name,
965-
model: { providerID: ProviderID.make("minimax"), modelID: ModelID.make("MiniMax-M2.7") },
964+
model: { providerID: ProviderID.make("minimax"), modelID: ModelID.make("MiniMax-M2.5") },
966965
} satisfies MessageV2.User
967966

968967
const stream = await LLM.stream({

patches/@ai-sdk%2Fanthropic@3.0.64.patch

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)