package chatoyant
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml-first LLM SDK with Melange-generated JavaScript
Install
dune-project
Dependency
Authors
Maintainers
Sources
chatoyant-v0.12.2.tbz
sha256=a885dcf4b3c6ede268e2027bedf6955a5c889f7ed01c40b719f8369655957d47
sha512=0bb8dfa12157ba2e482927717c2242c1ea914dce1427801e405987811550afbd6d6b11f07d1e1379259360d17f4ca43ff81963bf407cddb7bedd0dfbb93a55ee
doc/chatoyant.provider/Chatoyant_provider/Openai_stream/index.html
Module Chatoyant_provider.Openai_streamSource
OpenAI-compatible stream accumulation over decoded JSON chunks.
Source
type tool_call_delta = {tool_index : int;tool_id : string option;tool_name : string option;tool_arguments_delta : string option;
}Source
type delta = {delta_content : string option;delta_reasoning_content : string option;delta_tool_calls : tool_call_delta list;delta_finish_reason : string option;delta_usage : Chatoyant_runtime.Json.t option;
}Source
type accumulated = {accumulated_content : string;accumulated_reasoning_content : string;accumulated_finish_reason : string option;accumulated_usage : Chatoyant_runtime.Json.t option;
} sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>