Defines named LLM model presets for the site.
// Source: https://github.com/KKKKhazix/AIHOT | License: MIT | Copyright 2026 数字生命卡兹克
// Provided via justclaw.it.com; keep this notice with the code.
// 这个站用哪些模型。框架自带一个 `default`:环境变量 LLM_BASE_URL / LLM_API_KEY / LLM_MODEL 指定的模型。
// 这里再列出具名的模型(每个用自己的地址和密钥环境变量),以及每一步默认用哪个;没写的步骤用 default。
// 部署时还可以用环境变量(PREFILTER_MODEL、SCORE_MODEL……)或后台的“模型与评测”页逐步改选。
import type { ModelPreset } from "@aihot/contracts/site-config";
export type { ModelPreset } from "@aihot/contracts/site-config";
/** 具名的模型示例(每个要配自己的密钥)。用不上可以删掉。 */
export const PRESETS: Record<string, ModelPreset> = {
// GLM 5.3 Flash always reasons; the lowest effort keeps short structured tasks fast.
"glm-5.3-flash": {
service: "zhipu", model: "glm-5.3-flash", baseUrlEnv: "ZHIPU_BASE_URL", apiKeyEnv: "ZHIPU_API_KEY",
extra: { t
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key