Skip to main content

Crate molo_openai

Crate molo_openai 

Source
Expand description

Provider implementation for OpenAI-compatible APIs.

The base_url constructor argument can point at OpenAI-compatible endpoints such as OpenAI / DeepSeek / Zhipu / Moonshot, as well as Ollama’s OpenAI-compatible interface (pass an empty string for api_key).

Modules§

message
Conversation messages.
provider
Provider: the interface for communicating with an LLM.
tool
Tool: external capabilities an agent can invoke.

Structs§

OpenAiProvider
Provider implementation for OpenAI-compatible APIs.

Enums§

StructuredOutputMode
Transport shape for structured output (an OpenAiProvider construction setting): decides how response_format is sent.