sim_lib_openai_server/install.rs
1use sim_kernel::{Cx, Result};
2
3use crate::manifest::OpenAiGatewayLib;
4
5/// Installs the OpenAI gateway library into the context, idempotently.
6///
7/// Registers [`OpenAiGatewayLib`] via `install_once`, so repeated calls on the
8/// same context are no-ops after the first.
9pub fn install_openai_gateway_lib(cx: &mut Cx) -> Result<()> {
10 sim_lib_core::install_once(cx, &OpenAiGatewayLib).map(|_| ())
11}