Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Function routeBaseUrls

    • Parameters

      • config: {
            lease: { allowQueryCarrier: boolean };
            listen: { host: string; port: number };
            proxy: {
                allowlistHosts: string[];
                denyByDefault: boolean;
                enabled: boolean;
                port: number;
            };
            redaction: {
                headerKeysDenylist: string[];
                jsonPathsDenylist: string[];
                textRegexDenylist: string[];
            };
            routes: {
                agentId?: string;
                openaiCompatible: boolean;
                prefix: string;
                stripPrefix: boolean;
                upstream: string;
            }[];
            streamPassthrough: boolean;
            upstreams: Record<
                string,
                {
                    allowLocalhost?: boolean;
                    auth: | { env: string; type: "bearer_env" }
                    | { env: string; header: string; type: "header_env" }
                    | { env: string; param: string; type: "query_env" }
                    | { type: "none" };
                    baseUrl: string;
                    providerId?: string;
                },
            >;
        }

      Returns {
          agentId?: string;
          baseUrl: string;
          openaiCompatible: boolean;
          prefix: string;
          upstream: string;
      }[]