zeo9901 (CC01CC) on Discord #feedback: "magpie 中 opencode go 所有的模型似乎 都无法实现图片输入了". Their screenshot is a routing group of DeepSeek V4.1 Flash at Open Design and at OpenCode Go. Cause: OpenCode Go's own /models (https://opencode.ai/inference/go/v1/models, the same at /zen/go/v1/models) lists what a model takes as media types: deepseek-v4.1-flash's modalities.input is ["text","image/jpeg","image/png", "image/gif","image/webp"], Gemini's adds application/pdf and audio/*, and so on. catalog's live-list reader took the list word for word and asked for "image", found none, and recorded ImageInput = false, an explicit answer. entryFor puts a list's explicit answer over models.dev's (which says image), so with a working Go key every Go model was text-only: a direct pick had its image described or turned away with "model does not support image input", a group member was sent it described or not at all, and agents were told the models take text only. It used to work while Go's list spelt modalities as models.dev does, or said nothing. Fix: catalog.Kinds reads a modalities list as models.dev words it (image/* image, video/* video, audio/* audio, text/* text, application/pdf pdf, each once, an unknown word kept, nil stays nil). imageInput and the live reader's InputModalities/OutputModalities go through it, as do Codex's input_modalities, the labs rows and a decision provider's listed facts (decide.go). A list saved before this, still holding Go's media types and false, is mended when read (mendKinds), so a user sees images from the first read after the update, not the next fetch. A user's own Accepts images answer still wins. Which OpenCode Go models take images, per Go's list on 2026-10-31: deepseek-v4.1-flash, kimi-k3, kimi-k3.1-pro, kimi-k2.7-code, glm-5.3-flash, qwen3.8-max, qwen3.8-flash, qwen3.7-plus, minimax-m3, minimax-m3.1-flash, mimo-v2.6-flash, mimo-v2.6-pro, step-5-preview, gemini-4-argon, grok-4.7, gpt-6-luna, gpt-5.6-luna, claude-haiku-5-5, muse-spark-1.2/1.3-contributor. Text only: deepseek-v4-pro, glm-5.2, glm-5.3, hy3, hy4-preview, longcat-2.0, beam-free, iceman-contributor-free. Tests (fixture: four rows of Go's real list, read without a key, no test reaches the network): - TestOpenCodeGoMediaTypesSee (catalog), TestKinds, TestSavedMediaTypesListSees, TestListedFactsMediaTypesSee (provider). - Broken by hand: Kinds returning its input unchanged turns all four red (deepseek-v4.1-flash, kimi-k3, gemini-4-argon "Images false"); the mendKinds call taken out turns TestSavedMediaTypesListSees red. Run on mote at the working tree on82b45888a(origin/main82b45888aplus this change): - gofmt -l internal cmd: nothing. - GOOS=linux go vet -tags nogui and GOOS=windows go vet of ./internal/catalog ./internal/provider ./internal/gateway: ok. - go test -tags nogui ./internal/catalog ./internal/provider ./internal/gateway ./internal/agent -count=1 -timeout 45m: all ok (catalog 0.7s, provider 129s, gateway 665s, agent 203s). The docs paragraph was added after the run; no code changed since. The full go test ./... and the GUI suite were not run (no GUI file changed). - Rebased ontoceeb73a0f(two commits outside catalog); at the rebased tree go test -tags nogui ./internal/catalog ./internal/provider -count=1 -timeout 45m: ok (catalog 0.8s, provider 98s). Docs: gateway-routing.md, "A model that turns an image away". Not tried: a real OpenCode Go request with an image (the only Go key here has expired, and it isn't to be used). Not known: which agent and version the reporter uses; Open Design's DeepSeek in the same group is a separate provider and wasn't looked at.
1 line
5.2 KiB
JSON
1 line
5.2 KiB
JSON
{"object":"list","data":[{"id":"deepseek-v4.1-flash","object":"model","created":1793428469,"owned_by":"opencode","name":"DeepSeek V4.1 Flash","canonical_id":"deepseek/deepseek-v4.1-flash","type":"chat","description":"DeepSeek V4.1 Flash model for reasoning and agentic coding","family":"deepseek-flash","open_weights":true,"knowledge":"2025-05","release_date":"2026-09-10","last_updated":"2026-09-10","modalities":{"input":["text","image/jpeg","image/png","image/gif","image/webp"],"output":["text"]},"capabilities":{"tools":{"supported":true},"reasoning":{"supported":true,"effort":["low","high","max"]},"structured_output":true,"temperature":true,"top_p":true,"top_k":true,"system_updates":true,"effort_updates":false},"limit":{"context":1000000,"output":384000},"cost":{"text":{"input":{"price":0.15,"cache":{"read":0.003}},"output":{"price":0.6}},"multipliers":[{"when":{"utc_days":{"in":["mon","tue","wed","thu","fri"]},"any":[{"all":[{"utc_hours":{"gte":"01:00"}},{"utc_hours":{"lt":"04:00"}}]},{"all":[{"utc_hours":{"gte":"06:00"}},{"utc_hours":{"lt":"10:00"}}]}]},"factor":2}]},"api":{"chat-completions":{"base_url":"https://opencode.ai/inference/go/openai/v1","sdk":{"aisdk":"@ai-sdk/openai-compatible","opencodeai":"@opencode/ai/providers/openai-compatible"},"compatibility":{"reasoning_field":"reasoning_content"},"capabilities":{"tools":{"choice":["auto","none","required","tool"],"updates":false}}}}},{"id":"glm-5.2","object":"model","created":1793428469,"owned_by":"opencode","name":"GLM-5.2","canonical_id":"zhipuai/glm-5.2","type":"chat","description":"Open flagship GLM for long-horizon coding agents and million-token context work","family":"glm","open_weights":true,"release_date":"2026-06-13","last_updated":"2026-06-13","modalities":{"input":["text"],"output":["text"]},"capabilities":{"tools":{"supported":true},"reasoning":{"supported":true,"effort":["high","max"]},"structured_output":true,"temperature":true,"top_p":true,"top_k":true,"system_updates":true,"effort_updates":false},"limit":{"context":1000000,"output":131072},"cost":{"text":{"input":{"price":1.4,"cache":{"read":0.26}},"output":{"price":4.4}}},"api":{"chat-completions":{"base_url":"https://opencode.ai/inference/go/openai/v1","sdk":{"aisdk":"@ai-sdk/openai-compatible","opencodeai":"@opencode/ai/providers/openai-compatible"},"compatibility":{"reasoning_field":"reasoning_content"},"capabilities":{"tools":{"choice":["auto"],"updates":false}}}}},{"id":"kimi-k3","object":"model","created":1793428469,"owned_by":"opencode","name":"Kimi K3","canonical_id":"moonshotai/kimi-k3","type":"chat","description":"Multimodal Kimi model with 1M context and toggleable max-effort thinking for long-horizon agent work","family":"kimi-k3","open_weights":true,"release_date":"2026-07-16","last_updated":"2026-07-16","modalities":{"input":["text","image/jpeg","image/png","image/gif","image/webp","image/bmp","image/heic","image/heif","video/mp4","video/mpeg","video/mov","video/avi","video/x-flv","video/mpg","video/webm","video/wmv","video/3gpp"],"output":["text"]},"capabilities":{"tools":{"supported":true},"reasoning":{"supported":true,"effort":["max"]},"structured_output":true,"temperature":false,"top_p":false,"top_k":false,"system_updates":true,"effort_updates":false},"limit":{"context":1048576,"output":131072},"cost":{"text":{"input":{"price":3,"cache":{"read":0.3,"write":3}},"output":{"price":15}}},"api":{"chat-completions":{"base_url":"https://opencode.ai/inference/go/openai/v1","sdk":{"aisdk":"@ai-sdk/openai-compatible","opencodeai":"@opencode/ai/providers/openai-compatible"},"compatibility":{"reasoning_field":"reasoning_content"},"capabilities":{"tools":{"strict":true,"choice":["auto","none","required"],"updates":true}}}}},{"id":"gemini-4-argon","object":"model","created":1793428469,"owned_by":"opencode","name":"Gemini 4 Argon","canonical_id":"google/gemini-4-argon","type":"chat","description":"Google's flagship reasoning model for complex software engineering, deep math and science, and long-horizon autonomous agents","family":"gemini","open_weights":false,"knowledge":"2026-03","release_date":"2026-10-13","last_updated":"2026-10-13","modalities":{"input":["text","image/png","image/jpeg","image/webp","image/heic","image/heif","video/mp4","video/mpeg","video/mov","video/avi","video/x-flv","video/mpg","video/webm","video/wmv","video/3gpp","audio/wav","audio/mp3","audio/aiff","audio/aac","audio/ogg","audio/flac","audio/mpeg","audio/m4a","audio/l16","audio/opus","audio/alaw","audio/mulaw","audio/webm","application/pdf"],"output":["text"]},"capabilities":{"tools":{"supported":true},"reasoning":{"supported":true,"effort":["low","medium","high"]},"cache":{"implicit":true},"structured_output":true,"temperature":false,"top_p":false,"top_k":false,"system_updates":false,"effort_updates":false},"limit":{"context":1048576,"output":65536},"cost":{"text":{"input":{"price":2,"cache":{"read":0.1}},"output":{"price":10}},"audio":{"input":{"price":2}},"multipliers":[{"when":{"date":{"gte":"2026-12-01"}},"factor":2}]},"api":{"generate-content":{"base_url":"https://opencode.ai/inference/go/google/v1beta","sdk":{"aisdk":"@ai-sdk/google","opencodeai":"@opencode/ai/providers/google"},"capabilities":{"tools":{"choice":["auto","none","required","tool"],"updates":false}}}}}]} |