Struct OpenAI Cache Plugin
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
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
Trait Implementations
impl ProviderPlugin for OpenAICachePlugin
impl ProviderPlugin for OpenAICachePlugin
plugin_id
fn plugin_id(&self) -> &str
plugin_name
fn plugin_name(&self) -> &str
translate
fn translate(&self, input: &PluginInput<'_>) -> Result<PluginOutput>
capabilities
fn capabilities(&self) -> BackendCapabilities