Expand description
OpenAI-compatible provider engine.
Ported from the openai-runtime prototype. Translates between Anthropic-shaped
messages/tools/content-blocks (the internal synaps representation) and
OpenAI chat/completions SSE wire.
Modules§
- catalog
- Normalized model catalog types and provider-specific parsers.
- ping
- Model ping / health check.
- reasoning
- Provider-aware thinking/reasoning request helpers.
- registry
- Provider registry — catalog of known OpenAI-compatible endpoints.
- stream
- Streaming path for OpenAI-compatible providers.
- translate
- Anthropic ↔ OpenAI translation layer.
- types
- OpenAI-compatible wire types. Ported from the prototype
openai-runtimecrate. - wire
- SSE wire decoder for OpenAI-compatible streams. Ported from
openai-runtime::stream, withStreamEventrenamed toOaiEvent.
Structs§
- Chat
Message - Chat
Options - Chat
Request - Function
Call - Function
Definition - Provider
Config - Stream
Decoder - Stream
Options - Tool
Call - Tool
Definition
Enums§
- OaiEvent
- Provider
- Routing decision for a given model id.
- Tool
Choice
Functions§
- clear_
extension_ manager_ for_ routing - extension_
manager_ for_ routing - resolve_
route - Decide which backend a model should route to.
- set_
extension_ manager_ for_ routing - try_
route - Try to route a request through an OpenAI-compatible provider.