(* Read from stdin *)
try
let line = input_line stdin in
read_lines
acc
in
read_lines ""
(* Get env variable *)
try getenv api
failwith api ^ " environment variable not found"
(* Get api keys *)
let ant_api_key = get_env "ANTHROPIC_API_KEY" (
let memos_api_key = get_env "MEMOS_API_KEY" (
(* Make a request to Anthropic *)
let model = "claude-3-haiku-20240307" in
let max_tokens = 1024 in
let ant_uri = of_string "https://api.anthropic.com/v1/messages" in
let headers =
init ( |>