[PR #68] [CLOSED] update anthropic and google providers to latest #9528

Closed
opened 2026-02-16 18:13:42 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/68
Author: @eli0shin
Created: 6/6/2025
Status: Closed

Base: devHead: update-provider-sdk


📝 Commits (1)

  • 7be69ad update anthropic and google providers to latest

📊 Changes

3 files changed (+14 additions, -12 deletions)

View changed files

📝 go.mod (+4 -6)
📝 go.sum (+4 -0)
📝 internal/llm/provider/anthropic.go (+6 -6)

📄 Description

The anthropic and google SDKs are very out of date.
The google SDK has not experienced any breaking changes and the anthropic SDK had minor breaking changes in the naming of some types and methods which are fixed in this PR.
My motivation here is that I use both providers with a unified gateway endpoint like an enterprise openrouter. This is supported by Claude code today via env variables. Support for the same env variables was added to the anthropic SDK in beta 4. Likewise, the google SDK also added env variables base url support in recent versions.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/68 **Author:** [@eli0shin](https://github.com/eli0shin) **Created:** 6/6/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `update-provider-sdk` --- ### 📝 Commits (1) - [`7be69ad`](https://github.com/anomalyco/opencode/commit/7be69adfc01cc150bd79ca421b7c1416d22edd69) update anthropic and google providers to latest ### 📊 Changes **3 files changed** (+14 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+4 -6) 📝 `go.sum` (+4 -0) 📝 `internal/llm/provider/anthropic.go` (+6 -6) </details> ### 📄 Description The anthropic and google SDKs are very out of date. The google SDK has not experienced any breaking changes and the anthropic SDK had minor breaking changes in the naming of some types and methods which are fixed in this PR. My motivation here is that I use both providers with a unified gateway endpoint like an enterprise openrouter. This is supported by Claude code today via env variables. Support for the same env variables was added to the anthropic SDK in beta 4. Likewise, the google SDK also added env variables base url support in recent versions. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:42 -05:00
yindo closed this issue 2026-02-16 18:13:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9528