api_openai_compatible 0.2.0

Shared OpenAI wire-protocol HTTP layer for OpenAI-compatible APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! OpenAI-compatible wire-type components.
//!
//! Re-exports all wire types for chat completions and optional streaming.

mod private
{
}

#[ cfg( feature = "enabled" ) ]
crate::mod_interface!
{
  /// Chat completion request, response, and message types.
  layer chat;

  /// Server-Sent Events streaming types.
  #[ cfg( feature = "streaming" ) ]
  layer streaming;
}