Repository navigation
Bind OpenCode Go Gemini routes from the live models list and delete the probe records - #795
Conversation
…he probe records (#748) The Go models list now states api.generate-content.base_url for gemini-4-argon, and no longer lists gemini-4-argon-contributor (models.dev marks it deprecated). The hand-written route records are deleted with the code that only they used. The spec sync drops a models.dev id the Go list no longer names. trainsOnRequestData comes only from go.training.
🦋 Changeset detectedLatest commit: c844eda The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
What
The issue offered two ways out: observe the routes from the Worker, or find an OpenCode source that states them. The second one exists, so no key or route probe is added.
GET https://opencode.ai/inference/go/v1/modelsstatesapi.generate-content.base_urlforgemini-4-argon.goListingRoutesalready reads that asmodels/<id>:generateContent(opencode-go spec sync: Go docs no longer list endpoint paths; read routes from the listing's api field #679), so the Go special case inopencode-catalog.tsthat bound only a probe record is removed.gemini-4-argonnow bindsinference/go/google/v1beta/models/gemini-4-argon:generateContent(it was unbound before).gemini-4-argon-contributor, the only id the records covered, is gone from the Go list anddeprecatedon models.dev (checked 2026-12-04). Its two routes leave the spec.openCodeRouteSpecnow skips a models.dev row whose id the Go list no longer names. Without this the contributor row's per-model route would fail the spec sync with "states no route".trainsOnRequestDatacomes only fromgo.trainingon the list. The read-time probe fill is removed.Deleted
probes/opencode-go.ts,probes/compare.ts,ProbeRecord/ProbeRequest/ProbeExpect,probedRoute,probeFactSource,probesFor,staleRouteRecordCount,probeOperation, theopencode-gomode ofpnpm run probe, andOPENCODE_GO_API_KEYfromProviderSecrets.Not done
:streamGenerateContentis not bound for any id: no OpenCode source states it.MODEL_ROW_SHAPEbump: only descriptions changed, and the hash ignores them.Checked
pnpm run test(265 files, 2764 tests),typecheck,lint,checkpass.messages,chat/completions,responsesand thegemini-4-argon:generateContentroute;gemini-4-argonbinds it with alistingsource.After merge
The next spec sync removes the two contributor endpoints from
opencode-go.docs/api-changes.mdhas the note.Fixes #747
Summary by CodeRabbit