Expand description
LM Studio OpenAI-compatible provider wire codec. LM Studio OpenAI-compatible provider wire codec.
LM Studio accepts OpenAI chat-completions request and response bodies. This
module delegates the wire translation to the OpenAI codec while preserving
the native lm-studio provider identity on decoded transcripts.
Structs§
- LmStudio
Codec - Runtime codec for LM Studio OpenAI-compatible chat-completion JSON.
- LmStudio
Codec Lib - Host-registered lib for
codec:lm-studio.
Functions§
- decode_
lm_ studio_ request - Decodes an LM Studio OpenAI-compatible request body.
- decode_
lm_ studio_ response - Decodes an LM Studio OpenAI-compatible response body.
- decode_
lm_ studio_ stream - Decodes LM Studio OpenAI-compatible SSE chunks into a response transcript.
- encode_
lm_ studio_ request - Encodes a model-request transcript into an LM Studio request body.
- encode_
lm_ studio_ response - Encodes a model-response transcript into an LM Studio response body.
- lm_
studio_ codec_ symbol - Returns the codec symbol
codec:lm-studio.
Type Aliases§
- LmStudio
Codec Options - Options for LM Studio OpenAI-compatible request JSON generation.
- LmStudio
Request Options - Alias for
LmStudioCodecOptionswhen used for request generation.