package chatoyant

  1. Overview
  2. Docs
OCaml-first LLM SDK with Melange-generated JavaScript

Install

dune-project
 Dependency

Authors

Maintainers

Sources

chatoyant-v0.13.0.tbz
sha256=1f84c5229b2d58ec6264dd651a58f2686130afa6e91989f110aa7aaf10bba0f5
sha512=49142e122dbb44b03f7f27b52839492800332207d0efeacc7451173827c899a9b965b671a3d9028cc05250aaebbc6789d3815a6cf356f4319bc0c1b0454c68dd

doc/chatoyant.provider/Chatoyant_provider/Local/index.html

Module Chatoyant_provider.LocalSource

Local OpenAI-compatible provider.

Targets local inference servers such as Ollama, LM Studio, mlx-lm/oMLX, llama.cpp server, and vLLM. The public surface stays provider-specific; compatibility quirks are handled internally.

Sourcetype responses_request = Openai.responses_request
Sourcetype responses_response = Openai.responses_response
Sourcetype image_request = Openai.image_request
Sourcetype image_response = Openai.image_response
Sourcetype embedding_request = Openai.embedding_request
Sourcetype embedding_response = Openai.embedding_response
Sourceval chat_request_json : request -> Chatoyant_runtime.Json.t
Sourceval responses_request_json : responses_request -> Chatoyant_runtime.Json.t
Sourceval image_request_json : image_request -> Chatoyant_runtime.Json.t
Sourceval embedding_request_json : embedding_request -> Chatoyant_runtime.Json.t
Sourceval authorization_headers : ?api_key:string -> unit -> (string * string) list
Sourceval chat_response_of_stream_chunks : string list -> (response, string) result
Sourceval response_of_stream_chunks : string list -> (responses_response, string) result