> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/relay/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Function normalize_whitespace

> Normalize whitespace in text content.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi`.

<pre />

Normalize whitespace in text content.

1. Trims leading and trailing whitespace.
2. Collapses runs of horizontal whitespace (spaces, tabs, and other Unicode whitespace characters except `\n`) into a single ASCII space.
3. Preserves single newline characters (they separate paragraphs in prompts).