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.2.tbz
sha256=637f60398f673dfb2e661f6ed7da169b823a870d27b48e729d5b9200e46a52b2
sha512=5aec259473395025edb6689b544e57e821cfbef9352987f95eb2182034979ce898040e06e60a9d89a40a187b77fb5b1b7183c7ec4264da9d9a834864860a5fed
doc/src/ocaml-ai-sdk.ai_provider_anthropic/ai_provider_anthropic.ml.html
Source file ai_provider_anthropic.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33module Config = Config module Model_catalog = Model_catalog module Thinking = Thinking module Effort = Effort module Cache_control = Cache_control module Anthropic_options = Anthropic_options module Cache_control_options = Cache_control_options module Convert_prompt = Convert_prompt module Convert_tools = Convert_tools module Convert_response = Convert_response module Convert_usage = Convert_usage module Anthropic_error = Anthropic_error module Sse = Sse module Convert_stream = Convert_stream module Beta_headers = Beta_headers module Anthropic_api = Anthropic_api module Anthropic_model = Anthropic_model let language_model ?api_key ?base_url ?headers ~model () = let config = Config.create ?api_key ?base_url ?headers () in Anthropic_model.create ~config ~model let model model_id = let config = Config.create () in Anthropic_model.create ~config ~model:model_id let create ?api_key ?base_url ?headers () = let config = Config.create ?api_key ?base_url ?headers () in let module P = struct let name = "anthropic" let language_model model_id = Anthropic_model.create ~config ~model:model_id end in (module P : Ai_provider.Provider.S)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>