Skip to content
Source
Sign inSign up
TanStack/schemas

Add LLM Gateway provider (#402) #405

Mergedtombeckenhammerged 1 commit intomain fromrefs/pull/405/headmerged by tombeckenham View on GitHub

Showing 7 changed files with 8 additions and 1 deletion (loading 4).

x
0 of 7 viewed, 7 left
4 additions and 1 deletionsrc/server/ingest/poll-models.tsModified
View file
@@ -843,7 +843,10 @@
vocabulary,
now,
- const identity = provider.upstreamModelIdentity?.(info.rawId) ?? null
+ const identity =
+ info.upstream !== undefined
+ ? info.upstream
+ : (provider.upstreamModelIdentity?.(info.rawId) ?? null)
// Only changed evidence is written: most rows restate it every poll.
if (!sameEvidence(existing, identity)) identities.push({ id, identity })
​
2 additions and 0 deletionssrc/server/providers/adapters/amazon-bedrock.tsModified
View file
@@ -57,6 +57,8 @@
​
export const provider: ProviderConfig = {
id: 'amazon-bedrock',
+ // LLM Gateway route name (providers[].providerId).
+ modelNamespaces: ['aws-bedrock'],
displayName: 'Amazon Bedrock',
specSourceUrl: BEDROCK_SDK_MODEL_URL,