GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(opencode): hoist Bedrock tool images except Claude, Nova, and Lla… · dmouse/opencode@c101347

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/opencode/src/session
    • message-v2.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/src/session/message-v2.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/src/session/message-v2.ts
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ export const toModelMessagesEffect = Effect.fnUntraced(function* (
148148
if (model.api.npm === "@ai-sdk/anthropic") return true
149149
if (model.api.npm === "@ai-sdk/openai") return true
150150
if (model.api.npm === "@ai-sdk/amazon-bedrock/mantle") return true
151-
if (model.api.npm === "@ai-sdk/amazon-bedrock") return attachment.mime.startsWith("image/")
151+
if (model.api.npm === "@ai-sdk/amazon-bedrock") {
152+
if (!attachment.mime.startsWith("image/")) return false
153+
const id = model.api.id.toLowerCase()
154+
return id.includes("anthropic.") || id.includes("nova") || id.includes("llama4") || id.includes("llama-4")
155+
}
152156
if (model.api.npm === "@ai-sdk/xai") return attachment.mime.startsWith("image/")
153157
if (model.api.npm === "@ai-sdk/google-vertex/anthropic") return true
154158
if (model.api.npm === "@ai-sdk/google") {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.