Skip to main content

Crate siumai_protocol_openai

Crate siumai_protocol_openai 

Source
Expand description

siumai-protocol-openai

OpenAI(-like) protocol family mapping for siumai.

This crate owns the vendor-agnostic protocol layer for the OpenAI family:

  • OpenAI-like protocol mapping (Chat/Embedding/Image/Rerank)
  • OpenAI-compatible protocol building blocks (types + transformers)
  • OpenAI Responses API mapping (feature-gated)

Provider crates (e.g. siumai-provider-openai, siumai-provider-xai, siumai-provider-openai-compatible) should depend on this crate, and keep provider-specific quirks behind provider-owned presets/wrappers.

Modulesยง

hosted_tools
OpenAI protocol-owned provider-defined tool constructors.
provider_metadata
Protocol-owned typed metadata views. Typed response metadata (protocol-owned).
standards
Protocol standards owned by this crate.