(model, context)
| 77 | return GoogleResponse.parse(raw).models ?? []; |
| 78 | }, |
| 79 | translateModel(model, context) { |
| 80 | const id = model.name.replace(/^models\//, ""); |
| 81 | const existing = context.existing(id); |
| 82 | if (existing === undefined) return undefined; |
| 83 | |
| 84 | return { |
| 85 | id, |
| 86 | model: buildGoogleModel(model, existing), |
| 87 | }; |
| 88 | }, |
| 89 | } satisfies SyncProvider<GoogleModel>; |
| 90 | |
| 91 | export function buildGoogleModel(model: GoogleModel, existing: ExistingModel): SyncedModel { |
nothing calls this directly
no test coverage detected