wire

The wire formats of the online LLM providers, as pure functions (llm-openai-compatible §OCP-W2).

In the namespace octomy::llm.

Detailed description

Each protocol has its form in one namespace: anthropic for the Messages API, openai for the Chat Completions form that OpenAI and the self-hosted servers speak. The functions have no network and no state.

Namespaces

Namespace What it is
anthropic Anthropic's Messages API, as pure functions (llm-openai-compatible §OCP-W1, §OCP-W2)
openai OpenAI Chat Completions form, as pure functions (llm-openai-compatible §OCP-W2)
In this section