replicate: state the upstream model from an official model's owner #724
main fromfeat/718-upstream-replicate·merged by tombeckenham View on GitHubPart of #718.
Rule: the Replicate models listing gives every row an owner and name, and is_official. An official model is published under its maker's account, so its row states upstream = owner / name, source listing, https://api.replicate.com/v1/models, path results[].owner (is_official). A community model's owner is whoever pushed it (prunaai/gpt-oss-120b-fast), which names no maker, so its upstream is null. This uses the listing fields, not a parse of the id, and is set on ModelInfo.upstream in toModelInfo because upstreamModelIdentity only sees the raw id and cannot read is_official.
Examples:
anthropic/claude-opus-4.7-> anthropic /claude-opus-4.7, which the resolver links toclaude-opus-4-7(dots as hyphens)google/gemini-3.5-flash-> google (gemini) /gemini-3.5-flashxai/grok-imagine-video-> xai (grok) /grok-imagine-video
Counts against the 500 live rows (2026-11-21): 228 official rows state an upstream, 41 of those have a target row today (openai 21, google 7, anthropic 6 of 6, minimax 4, xai 3). Claude goes from 0/6 to 6/6.
Unlinked, and why:
- 272 community rows: the owner is not the maker.
- Official owners with no provider or namespace here:
prunaai,recraft-ai,bytedance,wan-video,kwaivgi,lightricks,black-forest-labs,ideogram-ai,alibaba,qwen,moonshotai,runwaymland others. Some of these have a provider (bfl,runway,byteplus) but nomodelNamespacesentry for Replicate's account name; adding one is a separate change per provider. - Official rows whose name differs from the maker's id (
openai/whisper, older Replicate names): name matching is #719.
- 1
Warning
Review limit reached#
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 34 minutes.
View limit details
-
Limit details: You’ve used the included review currently available.
Review configuration:
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
7e72c82a-f670-4a49-86e7-603acb2be82c
Commits-
Reviewing files that changed from the base of the PR and between 3cd28b65a3b40ec3143f48410a4a6fc3dc9fcc38 and d31c9b159e41972bfcca4711c25af70805b6c38f.
Files selected for processing: 2-
src/server/providers/adapters/replicate.test.tssrc/server/providers/adapters/replicate.ts
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
-
tombeckenham merged this40ecaf2
tombeckenham closed this
Sign in to join this conversation.
⚠️ No Changeset found#
Latest commit: d31c9b159e41972bfcca4711c25af70805b6c38f
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR