package ocaml-ai-sdk
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml AI SDK - Provider abstraction for AI models
Install
dune-project
Dependency
Authors
Maintainers
Sources
ocaml-ai-sdk-0.6.3.tbz
sha256=0cc0a957784c295877b6bcc4f80c0dba0f6507d3c282e7d6cbd71038050376de
sha512=f8e082376b4de194a877d0df193892cdaa8139a4789f51eebac651acf8b6d4064b95242e158d86c1a32776d99130d43ed4c1119e2d54e738e93bdba2a6ad9a33
doc/ocaml-ai-sdk.ai_provider_anthropic/Ai_provider_anthropic/Config/index.html
Module Ai_provider_anthropic.ConfigSource
Anthropic provider configuration.
Source
type fetch_fn =
url:string ->
headers:(string * string) list ->
body:string ->
Yojson.Basic.t Lwt.tCustom HTTP function for testing.
Source
type t = {api_key : string option;base_url : string;default_headers : (string * string) list;fetch : fetch_fn option;timeouts : Ai_provider.Http_timeouts.t;
}Source
val create :
?api_key:string ->
?base_url:string ->
?headers:(string * string) list ->
?fetch:fetch_fn ->
?timeouts:Ai_provider.Http_timeouts.t ->
unit ->
tCreate config. api_key defaults to ANTHROPIC_API_KEY env var. base_url defaults to "https://api.anthropic.com/v1".
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>