The environment variable naming an ordered model preference for OpenRouter.
Comma-separated, highest preference first, e.g.
MJ_OPENROUTER_MODEL_PREFERENCE="google/gemini-3.8-flash,anthropic/claude-3-5-haiku"
WHY AN ENVIRONMENT VARIABLE. This preference has to reach three consumers that
configure themselves in three different ways — a long-running server, a CodeGen
run, and the standalone db-auto-doc CLI, which builds this very class through
MJGlobal's ClassFactory and takes its own configuration from a JSON file it is
handed. The environment is the only channel all three share.
Unset changes nothing: the request body is byte-for-byte what it was before.
The environment variable naming an ordered model preference for OpenRouter.
Comma-separated, highest preference first, e.g. MJ_OPENROUTER_MODEL_PREFERENCE="google/gemini-3.8-flash,anthropic/claude-3-5-haiku"
WHY AN ENVIRONMENT VARIABLE. This preference has to reach three consumers that configure themselves in three different ways — a long-running server, a CodeGen run, and the standalone
db-auto-docCLI, which builds this very class through MJGlobal's ClassFactory and takes its own configuration from a JSON file it is handed. The environment is the only channel all three share.Unset changes nothing: the request body is byte-for-byte what it was before.