Skip to content
Source
Sign inSign up
TanStack/schemas

Bind docs-stated chat routes for dashscope-cn, Kimi Code and Vertex Claude #733 (GitHub #734)

Mergedtombeckenhammerged 8 commits intomain fromfeat/716-endpoint-probesmerged by tombeckenham View on GitHub

Showing 23 changed files with 86 additions and 33 deletions (loading 20).

x
0 of 23 viewed, 23 left
24 additions and 9 deletionssrc/server/providers/adapters/google-vertex-anthropic.test.tsModified
View file
@@ -6,7 +6,10 @@
VERTEX_CLAUDE_REQUEST_URL,
} from '../vertex-claude.ts'
​
-import { SKIP_REASON, provider } from './google-vertex-anthropic.ts'
+import { provider } from './google-vertex-anthropic.ts'
+​
+const ROUTE =
+ 'v1/projects/{projectsId}/locations/{locationsId}/publishers/anthropic/models/{modelsId}:rawPredict'
​
const originalFetch = globalThis.fetch
​
@@ -39,7 +42,7 @@
​
describe('google-vertex-anthropic', () => {
- it('fetches Google cards and pricing while preserving unknown body schemas', async () => {
+ it('fetches Google cards and pricing, and binds the stated route without a body schema', async () => {
const urls: Array<string> = []
const path =
'/gemini-enterprise-agent-platform/models/partner-models/claude/sonnet-4-6'
@@ -53,8 +56,7 @@
[`https://docs.cloud.google.com${path}`]: fixture('sonnet-4-6'),