> 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.

# Struct OpenAI Cache Plugin

> OpenAI-specific provider plugin for deterministic JSON serialization.

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

```rust
pub struct OpenAICachePlugin;
```

OpenAI-specific provider plugin for deterministic JSON serialization.

Ensures that semantically identical request prefixes produce byte-identical JSON output, maximizing OpenAI's automatic prefix cache hit rate. Stateless - no constructor arguments needed.

## Usage

```rust
let plugin = OpenAICachePlugin;
let output = plugin.translate(&input)?;
```

## Trait Implementations

### `impl ProviderPlugin for OpenAICachePlugin`

<pre />

#### `plugin_id`

<pre />

#### `plugin_name`

<pre />

#### `translate`

<pre />

#### `capabilities`

<pre />