package openrouter_api

  1. Overview
  2. Docs
OCaml client for the OpenRouter API

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1.0.tar.gz
md5=37c701d570788095f9a0690e401a4b0c
sha512=0f6e6d347094aff4efb50330d50ade3f1706929400498998a8d8f409f1ab45099d792cc469210e53c2ca06b0e1a9b20fdf8e89361a52969cc495812092fe584b

doc/openrouter_api/Openrouter_api/index.html

Module Openrouter_apiSource

Sourcemodule Api_error : sig ... end

API error response from OpenRouter.

Sourcemodule Completions : sig ... end

Chat completions and streaming chat completions.

Sourcemodule Embeddings : sig ... end
Sourcemodule Generation : sig ... end

Query generation stats for a previously-issued completion via the GET /api/v1/generation endpoint. The generation id is the same id returned on a chat completion or stream chunk; stats become queryable a few seconds after the request finishes.

Sourcemodule Http : sig ... end
Sourcemodule Models : sig ... end