Skip to content
Source
Sign inSign up
TanStack/schemas

google-vertex-anthropic: state the upstream model from the Claude catalog page #726

Mergedtombeckenhammerged 1 commit intomain fromfeat/718-upstream-google-vertex-anthropicmerged by tombeckenham View on GitHub

Showing 2 changed files with 24 additions and 0 deletions.

x
0 of 2 viewed, 2 left
12 additions and 0 deletionssrc/server/providers/adapters/google-vertex-anthropic.test.tsModified
View file
@@ -176,4 +176,16 @@
await expect(provider.listModels({})).rejects.toThrow('503')
await expect(provider.fetchSpec({})).rejects.toThrow('503')
+​
+ it('states every card id as the Anthropic model it hosts', () => {
+ expect(provider.upstreamModelIdentity?.('claude-opus-4-5')).toEqual({
+ providerNamespace: 'anthropic',
+ rawId: 'claude-opus-4-5',
+ source: {
+ derivation: 'docs-derived',
+ sourceUrl: VERTEX_CLAUDE_URL,
+ path: 'Model ID',
+ },
+ })
+ })
12 additions and 0 deletionssrc/server/providers/adapters/google-vertex-anthropic.tsModified
View file
@@ -35,6 +35,18 @@
id: 'google-vertex-anthropic',
// LLM Gateway route name (providers[].providerId).
modelNamespaces: ['vertex-anthropic'],
+ // The catalog is "Anthropic's Claude on Google Cloud models", and each