package chatoyant
Build not yet checked 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.19.2.tbz
sha256=1db9f9013e4598484347097646c00f09c3a438c2c7bc752d4ad0b0a7a86af3d4
sha512=fa1c09b16414b4858f26bbcd23e46041d318494b821c4262492056783eaedb4676f0d13dd807009533a0ae577ad23f5a9e9d0c73a88cd7f5bf926326583b49b6
doc/src/chatoyant.tokens/lifecycle.ml.html
Source file lifecycle.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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152type status = Active | Deprecated | Retired type info = { status : status; deprecated_on : string option; retires_on : string option; replacement : string option; note : string option; } let retired = { status = Retired; deprecated_on = None; retires_on = None; replacement = None; note = None; } let dated status deprecated_on retires_on replacement = Some { retired with status; deprecated_on = Some deprecated_on; retires_on = Some retires_on; replacement; } let entry = function | "gpt-image-1-mini" -> dated Retired "2026-06-02" "2026-12-01" (Some "gpt-image-2.6-sunburst") | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "o4-mini" -> dated Retired "2026-04-22" "2026-10-23" (Some "gpt-5.6-terra") | "gpt-4-0613" | "gpt-4" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4o-2024-05-13" | "o1-2024-12-17" | "o1" | "o1-pro" | "o3-mini-2025-01-31" | "o3-mini" -> dated Retired "2026-04-22" "2026-10-23" (Some "gpt-5.6-sol") | "gpt-4.1-nano" -> dated Retired "2026-04-22" "2026-10-23" (Some "gpt-5.6-luna") | "gpt-image-1" -> dated Retired "2026-04-22" "2026-10-23" (Some "gpt-image-2.5-sunburst") | "gpt-5-codex" | "gpt-5.1-codex" | "gpt-5.1-codex-max" | "o3-deep-research" | "o4-mini-deep-research" | "gpt-5.2-codex" -> dated Retired "2026-04-22" "2026-07-23" (Some "gpt-5.6-sol") | "gpt-5.1-codex-mini" -> dated Retired "2026-04-22" "2026-07-23" (Some "gpt-5.6-terra") | "gpt-4-turbo-preview" -> dated Retired "2025-09-26" "2026-03-26" (Some "gpt-5") | "chatgpt-4o-latest" -> dated Retired "2025-11-18" "2026-02-17" (Some "gpt-5.1-chat-latest") | "o1-mini" -> dated Retired "2025-04-28" "2025-10-27" (Some "o4-mini") | "o1-preview" -> dated Retired "2025-04-28" "2025-07-28" (Some "o3") | "gpt-4-32k" -> dated Retired "2024-06-06" "2025-06-06" (Some "gpt-4o") | "gpt-5" | "gpt-5-pro" | "o3" | "o3-2025-04-16" | "o3-pro" -> dated Deprecated "2026-06-11" "2026-12-11" (Some "gpt-6.2-sol") | "gpt-5-mini" -> dated Deprecated "2026-06-11" "2026-12-11" (Some "gpt-6.1-terra") | "gpt-5-nano" -> dated Deprecated "2026-06-11" "2026-12-11" (Some "gpt-6-luna") | "gpt-4o-mini-tts" -> dated Deprecated "2026-10-01" "2027-01-06" (Some "gpt-realtime-2.1-mini") | "gpt-4o" | "gpt-4o-2024-08-06" | "gpt-4o-2024-11-20" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4.1" | "gpt-4.1-mini" -> dated Deprecated "2026-10-14" "2027-01-14" (Some "gpt-6-luna") | "gpt-5.5-cyber-preview" -> dated Deprecated "2026-11-05" "2027-02-01" None | "gpt-4o-transcribe" | "gpt-4o-mini-transcribe" -> dated Deprecated "2026-08-26" "2027-02-26" (Some "gpt-live-transcribe") | "gpt-5.3-codex" | "gpt-5.1" -> dated Deprecated "2026-10-01" "2027-04-01" (Some "gpt-6.2-sol") | "gpt-5.4-nano" -> dated Deprecated "2026-10-01" "2027-04-01" (Some "gpt-6-luna") | "grok-build-0.1" -> Some { retired with retires_on = Some "2026-11-19" } | "grok-imagine-image-quality" | "grok-imagine-image-pro" -> Some { retired with retires_on = Some "2026-11-02"; replacement = Some "grok-imagine-image-2.0"; note = Some "xAI serves it as grok-imagine-image-2.0 at low quality."; } | "claude-opus-4-5" -> Some { status = Deprecated; deprecated_on = Some "2026-11-23"; retires_on = Some "2027-01-22"; replacement = Some "claude-opus-5-5"; note = None; } | "claude-sonnet-4-5" -> dated Retired "2026-09-30" "2026-11-30" (Some "claude-sonnet-5-5") | "claude-opus-4-1" -> dated Retired "2026-06-05" "2026-08-05" (Some "claude-opus-4-8") | "claude-sonnet-4-20250514" | "claude-sonnet-4-0" | "claude-opus-4-20250514" | "claude-opus-4-0" | "claude-3-5-sonnet-20241022" | "claude-3-5-sonnet-20240620" | "claude-3-5-haiku-20241022" | "claude-3-opus-20240229" | "claude-3-haiku-20240307" | "grok-4-1-fast-reasoning" | "grok-4-1-fast-non-reasoning" | "grok-4-fast-reasoning" | "grok-4-fast-non-reasoning" | "grok-4-0709" | "grok-4" | "grok-code-fast-1" | "grok-3" | "grok-3-mini" | "grok-2-vision-1212" | "grok-2-image-1212" -> Some retired | _ -> None let lifecycle model = let id = String.lowercase_ascii model in match entry id with | Some _ as info -> info | None -> let n = String.length id in if n > 9 && id.[n - 9] = '-' && String.for_all (function '0' .. '9' -> true | _ -> false) (String.sub id (n - 8) 8) then entry (String.sub id 0 (n - 9)) else None let warning model = let suffix prefix = Option.fold ~none:"" ~some:(( ^ ) prefix) in match lifecycle model with | None | Some { status = Active; _ } -> None | Some info -> let detail = match info.status with | Deprecated -> "deprecated" ^ suffix " on " info.deprecated_on ^ suffix ", with API retirement on " info.retires_on | Retired -> "retired" ^ suffix " on " info.retires_on | Active -> assert false in Some ("Chatoyant: " ^ model ^ " is " ^ detail ^ " on the first-party API." ^ suffix " Recommended replacement: " info.replacement) let handler = Atomic.make prerr_endline let set_warning_handler = Atomic.set handler let warned = Atomic.make [] let rec claim id = let seen = Atomic.get warned in if List.mem id seen then false else Atomic.compare_and_set warned seen (id :: seen) || claim id let warn_once model = match warning model with | Some message when claim (String.lowercase_ascii model) -> ( try (Atomic.get handler) message with _ -> ()) | _ -> ()
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>