Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file preset.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899typemodel_preset=Fast|Cheap|Best|Balanced|Reasoningtypereasoning=Off|Low|Medium|Hightypecreativity=Precise|Balanced_creativity|Creative|Wildtypereasoning_config={openai_effort:string;anthropic_budget_tokens:intoption;xai_prefer_reasoning_model:bool;}openChatoyant_provider.Providerletmodel_preset_of_string=function|"fast"->SomeFast|"cheap"->SomeCheap|"best"->SomeBest|"balanced"->SomeBalanced|"reasoning"->SomeReasoning|_->Noneletstring_of_model_preset=function|Fast->"fast"|Cheap->"cheap"|Best->"best"|Balanced->"balanced"|Reasoning->"reasoning"letresolve_model_preset~providerpreset=match(preset,provider)with|Fast,Openai->Some"gpt-5.6-luna"|Fast,Anthropic->Some"claude-haiku-4-5"|Fast,Xai->Some"grok-4-1-fast-non-reasoning"|Cheap,Openai->Some"gpt-5.4-mini"|Cheap,Anthropic->Some"claude-haiku-4-5"|Cheap,Xai->Some"grok-4-1-fast-non-reasoning"|Best,Openai->Some"gpt-5.6-sol"|Best,Anthropic->Some"claude-fable-5"|Best,Xai->Some"grok-4.5"|Balanced,Openai->Some"gpt-5.6-terra"|Balanced,Anthropic->Some"claude-sonnet-5"|Balanced,Xai->Some"grok-4.3"|Reasoning,Openai->Some"gpt-5.5-pro"|Reasoning,Anthropic->Some"claude-fable-5"|Reasoning,Xai->Some"grok-4.5"(* Meta serves one standard-tier family; the discounted -contributor
variant trains on request data, so presets never select it. *)|(Fast|Cheap|Best|Balanced|Reasoning),Meta->Some"muse-spark-1.2"|_,(Local|Openrouter)->Nonelettemperature_of_creativity=function|Precise->0.0|Balanced_creativity->0.7|Creative->1.0|Wild->1.5letreasoning_config=function|Off->{openai_effort="none";anthropic_budget_tokens=None;xai_prefer_reasoning_model=false;}|Low->{openai_effort="low";anthropic_budget_tokens=Some2_048;xai_prefer_reasoning_model=false;}|Medium->{openai_effort="medium";anthropic_budget_tokens=Some8_192;xai_prefer_reasoning_model=true;}|High->{openai_effort="high";anthropic_budget_tokens=Some32_768;xai_prefer_reasoning_model=true;}letstarts_with~prefixvalue=letprefix_len=String.lengthprefixinString.lengthvalue>=prefix_len&&String.subvalue0prefix_len=prefixletsupports_openai_reasoningmodel=List.exists(funprefix->starts_with~prefixmodel)["gpt-5";"o1";"o3";"o4"]letadjust_xai_model_for_reasoning~prefer_reasoningmodel=match(model,prefer_reasoning)with|"grok-4.20-0309-reasoning",false->"grok-4.20-0309-non-reasoning"|"grok-4.20-0309-non-reasoning",true->"grok-4.20-0309-reasoning"|"grok-4-1-fast-reasoning",false->"grok-4-1-fast-non-reasoning"|"grok-4-1-fast-non-reasoning",true->"grok-4-1-fast-reasoning"|"grok-4-fast-reasoning",false->"grok-4-fast-non-reasoning"|"grok-4-fast-non-reasoning",true->"grok-4-fast-reasoning"|_->model