MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / normalizeAnthropicBaseUrl

Function normalizeAnthropicBaseUrl

packages/node-runtime/src/ai/llm-builder.ts:38–40  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

36 * internally appends /v1/messages.
37 */
38export function normalizeAnthropicBaseUrl(url: string): string {
39 return url.replace(/\/v1\/?$/, '')
40}
41
42/**
43 * Auto-append /v1 to OpenAI-compatible URLs when the path is empty

Callers 2

buildPiModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected