🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
import { InvalidRequestError } from "@langfuse/shared";
import { getGatewayConnectionNameError } from "@/src/features/ai-gateway/fns/getGatewayConnectionNameError";
export function parseGatewayConnectionName(rawName: string) {
const name = rawName.trim();
const error = getGatewayConnectionNameError(name);
if (error) throw new InvalidRequestError(error);
return name;
}