Skip to content
Source
Sign inSign up
TanStack/schemas

fireworks: state the upstream model from each model's huggingFaceUrl #753 (GitHub #752)

Mergedtombeckenhammerged 1 commit intomain fromfeat/718-upstream-fireworksmerged by tombeckenham View on GitHub

Showing 9 changed files with 56 additions and 6 deletions (loading 6).

x
0 of 9 viewed, 9 left
32 additions and 0 deletionssrc/server/ingest/model-identity.worker.test.tsModified
View file
@@ -150,6 +150,38 @@
expect(await linkChanges(d, rowId)).toHaveLength(2)
​
+ it('keeps stored evidence while its source is unavailable, and clears it on cleared', async () => {
+ const d = deps()
+ const hostId = 'identity-unread-host'
+ const rawId = 'accounts/host/models/m'
+ const row = () =>
+ d.db.query.models.findFirst({
+ where: eq(models.id, modelDbId(hostId, rawId)),
+ })
+ const upstream = {
+ providerNamespace: 'publisher',
+ rawId: 'm',
+ source: SOURCE,
+ }
+ await pollProviderModels(d, stub(hostId, [{ rawId, upstream }]))
+ expect((await row())?.upstreamProvider).toBe('publisher')
+ // A failed metadata load says nothing about the upstream.
+ await pollProviderModels(
+ d,
+ stub(hostId, [{ rawId, absent: { upstream: 'unavailable' } }]),
+ )
+ expect(await row()).toMatchObject({
+ upstreamProvider: 'publisher',