Protocol detection and conversion between LLM API formats.
Each protocol module knows how to:
- Render normalized requests to wire format
- Convert responses back to its format
- Handle streaming event conversion
Summary
Callbacks
Convert a non-streaming response from source protocol to this protocol's format
Extract usage from a response in this protocol's native format
Which protocol this module handles
Types
Callbacks
Convert a non-streaming response from source protocol to this protocol's format
@callback extract_usage(response :: map()) :: LLMProxy.Providers.Behaviour.usage()
Extract usage from a response in this protocol's native format
@callback protocol() :: protocol()
Which protocol this module handles
Functions
@spec provider_request_body(LLMProxy.Protocol.Request.t(), module(), String.t()) :: map()