> 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 AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Module openai_chat

> Built-in codec for the OpenAI Chat Completions API.

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

Built-in codec for the OpenAI Chat Completions API.

Implements [`LlmCodec`](/reference/api/rust-library-reference/nemo-relay/codec/traits/trait-llmcodec) (request decode/encode) and [`LlmResponseCodec`](/reference/api/rust-library-reference/nemo-relay/codec/traits/trait-llmresponsecodec) (response decode) for the OpenAI Chat Completions format.

## Structs

* [OpenAIChatCodec](/reference/api/rust-library-reference/nemo-relay/codec/openai_chat/struct-openaichatcodec): Built-in codec for the OpenAI Chat Completions API.
* [OpenAIChatStreamingCodec](/reference/api/rust-library-reference/nemo-relay/codec/openai_chat/struct-openaichatstreamingcodec): Streaming counterpart to [`OpenAIChatCodec`](/reference/api/rust-library-reference/nemo-relay/codec/openai_chat/struct-openaichatcodec).