We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
formatters.ts•461 B
/** Maximum character length for model names in chart axis labels. */
export const MAX_MODEL_NAME_LENGTH = 14;
/**
* Truncates a model name if it exceeds the maximum length.
* Uses ellipsis at the end.
*/
export function truncateModelName(value: unknown): string {
if (typeof value !== "string") {
return String(value);
}
if (value.length <= MAX_MODEL_NAME_LENGTH) {
return value;
}
return value.slice(0, MAX_MODEL_NAME_LENGTH) + "...";
}