ChefJeff 模型连接说明
如果站点开放了免费试玩,可在开局前选择 StartLux(经 Bamboo Relay)或智谱 GLM-4.7-Flash,无需填写 Key。页面会注明当前模型、默认选择原因和免费额度;本局开始后固定模型,结算后再切换。站点只有在两个固定免费模型都通过验证后才会开放此入口。
你也可以使用自己的模型账号,费用记在你的账号上。下面说明自有账号能使用的服务、填写方式和费用参考。
Key 留在你的浏览器里
- 在线版的 Key 默认只在当前页面的内存里,刷新即消失;勾选「记住此设备」才以明文存进这个浏览器的 localStorage,「清除配置」即删除。
- 浏览器直接把请求发给你选的服务商,Key 不经过我们的服务器。例外是 Jev 和 Cloudflare:只有你明确勾选对应的「同意通过试玩服务器…」时,Key 才经我们的服务器转发,且不写入任何日志或记录。Cloudflare 不接受浏览器直连,在线版只能这样用。
- 详见隐私说明与反馈。
怎么填
打开「设置 → AI 搭档」,选「模型服务」,填好 Key 后点「测试并连接」。测试会发一次小请求,可能产生少量费用。
「模型服务」按类型分组,选好后接口地址和模型名称会自动填好,下方一行写着大约每局花费和是否实测过:
- 决策模型(直接从可选动作中选择)
- TypeSafe · Jev(推荐):勾选「同意通过试玩服务器调用 Jev」。Jev 目前不允许浏览器直连,这一项由服务器转发。已实测整局。
- OpenRouter 决策模型:在 OpenRouter 开 Key。默认是 Microsoft-Decision-1(输入每百万 token 0.042 美元、输出免费,约 ¥0.3–0.7/局);「模型名称」可以换成 OpenRouter 上任一决策模型的 ID,例如
typesafe/jev-1.14、openai/gpt-6-luna-decisions、perplexity/pplx-decider-v1.2。已实测整局。只读前约 2 千 token 的模型(如 Cloudflare Clef)看不全厨房,不要选。 - Perplexity Decider:在 Perplexity 开 API Key。接口
https://api.perplexity.ai/v1/decisions,默认模型pplx-decider-v1.3,可以改。请求只含 model、state 和 questions,按输入计费,约每百万 token 0.02 美元。浏览器可以直连,在线版和本地游戏都能用。已实测整局。 - Parallel Decisions(仅本地游戏):在 Parallel 开 API Key。接口
https://api.parallel.ai/v1/decisions,Key 放在x-api-key请求头里,请求只含 state、questions 和 mode(fast),不发模型名(接口不接受其他字段)。在线版没有这一项(它的接口不接受浏览器直接调用)。已实测整局。 - StartLux-Decision(Bamboo 存在延迟,免费接口):在 Bamboo Relay 申请 Key,有免费测试额度;请求经第三方中转 Bamboo Relay。接口
https://api.bamboonode.dev/v1/decisions,默认模型startlux-decision-27b-autothink,模型名可编辑。本地版和在线版均可选,在线版由浏览器跨域直连 Bamboo Relay。预设关闭自动思考;完整厨房请求仍可能超时或超过游戏接受回复的时限。开发者未用真实 Key 验证连接,未实测整局。官网 · 接口文档。返回与 Jev 相同的answers.next_action.choice和usage;两端预设均发送think_mode: never,默认不思考。Bamboo 默认允许返回“以上都不是”(choice: null);两端预设均发送allow_none: false,要求从列出的动作中选择。 - Decision 3.0:开源决策模型,需要自己部署,暂不能选。
- 快思考模型(通用对话模型;已为各家关闭深度思考、只要求回一个 JSON)
- DeepSeek:platform.deepseek.com,模型 deepseek-flash(10 月 17 日起为 V4.1-Flash-1017)。已实测整局。
- 阿里 Qwen3.8-27B:阿里云百炼,默认模型
qwen3.8-27b,按输入计费,约每百万 token ¥3;也可改填qwen-flash(约 ¥0.2–0.3/局)。未实测。 - 豆包 Seed 2.0 lite:火山方舟,约 ¥0.7–1.3/局。未实测。
- Gemini 3.5 Flash-Lite:Google AI Studio。免费层级每分钟 15 次、每天 500 次,需要所在网络能访问 Google。Jeff 每做完一步都会问下一步,每分钟通常要问 15 次以上(固定种子模拟里约 18 到 45 次,回复越快问得越勤);超过每分钟 15 次后服务会拒绝,Jeff 要等几秒到半分钟才能再问,所以用免费 Key 时他会常常停下来。Google 不再向新账号开放 2.5 系列。只用合成快照实测过一次。
- Cloudflare Workers AI(Gemma 4 / Llama 3.1):在 Cloudflare 控制台 创建带 Workers AI 权限的 API Token,再填账户的 32 位 Account ID。免费额度每个账户每天 10,000 Neurons,按 Jeff 每次请求约 7 千输入 Token 算,Gemma 约 140 次、Llama 约 100 次。默认模型是
@cf/google/gemma-4-26b-a4b-it,也可填@cf/meta/llama-3.1-8b-instruct-fp8。在线版要勾选「同意通过试玩服务器转发 Cloudflare 请求」。只用合成快照实测过一次。 - OpenRouter 对话模型:同一个 OpenRouter Key,地址已填好(
https://openrouter.ai/api/v1),「模型名称」填模型页上的 ID(形如「厂商/模型名」)。不会自动关闭思考,挑不带深度思考的模型。未实测。 - 其他兼容 Chat Completions 的服务:自己填接口地址和模型名称,例如硅基流动
https://api.siliconflow.cn/v1。不会自动关闭思考,思考型模型可能答不完。
- 智谱 GLM-5.3-Flash 只在本地版提供:智谱接口不允许浏览器跨域请求。默认模型
glm-5.3-flash,按量计费;改填glm-4.7-flash可免费用,但高峰常返回“访问量过大”。未实测。
我们在 2026-10-19 和 2026-10-20 确认过上述其他在线接口允许浏览器跨域请求;StartLux 的 Bamboo Relay 接口支持跨域直连,但尚未在此项目中用真实 Key 验证。能否真正调用,以你的账号点「测试并连接」的结果为准。模型名称会更新,请以服务商控制台为准。
响应时限:对话模型的回复最多 128 个 token,超过 15 秒的回复会被丢弃。决策模型走独立的 systemone 协议,不受这项对话输出上限约束,但过时的回复也会被丢弃(默认本地版 6 秒、在线版 15 秒)。StartLux 预设已关闭思考,但网络、排队及模型处理仍需耗时;连接测试通过不代表整局响应都能及时采用。
本地版更新与测试
- 先结束当前对局,在原游戏文件夹双击
stop-web.command停止旧服务,再从新版文件夹双击start-web.command。仅关闭网页或从另一个文件夹启动,会复用仍在运行的旧服务。 - 在「设置 → AI 搭档」选择「StartLux-Decision(Bamboo 存在延迟,免费接口)」,填同一个 Key,点「测试并连接」后试玩。
- 记录是否仍出现请求失败,并导出本次游玩;若需定位具体原因,本地
logs中的运行日志包含错误条目。不要分享凭据配置文件。
一局大约多少钱(估算)
- 调用次数:两次请求之间通常至少隔 2 秒;Jeff 做完一步会马上请求下一步,不等这 2 秒;一步剩下的时间比通常的回复时间还短时,不在这一步中途提问。默认速度下一局 180 游戏秒约 4 分钟,大约 100–150 次:回复慢的模型次数持平或更少,回复很快的模型会多一些。开发者早先用 Jev 玩的 11 个完整对局里,每局 63–120 次,中位数 111 次。
- 每次的输入:每次请求附带完整的厨房状态和规则,约 2.7–3.7 万字符;Jev 实测每次约 1.4–2 万输入 token。其他模型的分词方式不同,按每次 1–2 万输入 token、几十个输出 token 估算。
- 合计:一局约 110 万–220 万输入 token,输出只有几千 token,费用主要由输入单价决定:
- 输入单价每百万 token 1 元:一局约 1–2 元;
- 每百万 token 0.1 美元:一局约 0.1–0.2 美元;
- 每百万 token 0.3 美元:一局约 0.3–0.7 美元。
- 服务商的缓存折扣可能让实际费用更低;失败的请求也可能计费。以上只是估算,以服务商账单为准。
- 每局结束后,「设置 → 调用上限」会显示本局的调用次数和成功回复的 token 数,可以据此算出你自己的实际用量。
- 想省钱:在「调用上限」把每局次数调低(默认 200 次,例如 60 次约为一半费用),Jeff 达到上限后不再请求,你仍可以继续操作。
English
Jeff's moves are decided by your own model account and billed to it. This page lists the services the online version can use directly, what to enter, and roughly what a round costs.
Your key stays in your browser
- Online, the key lives in this page's memory by default and is gone on refresh. Only Remember on this device saves it, in plain text, to this browser's localStorage; Clear credentials deletes it.
- Your browser sends requests straight to the provider; the key does not pass through our server. The exceptions are Jev and Cloudflare: only when you explicitly tick the matching I agree to … through the demo server box is the key forwarded by our server, which never writes it to any log or record. Cloudflare does not accept browser requests, so online this is the only way to use it.
- See privacy and contact.
What to enter
Open Settings → AI teammate, choose an AI provider, paste your key and press Test and connect. The test sends one small request, which may cost a little.
AI provider is grouped by kind; picking one fills in the base URL and model name, and a line below gives the rough cost per round and whether it has been tested:
- Decision models (choose directly from the available actions)
- TypeSafe · Jev (recommended): tick I agree to call Jev through the demo server. Jev does not accept direct browser requests yet, so the server forwards them. Tested over a full round.
- OpenRouter decision models: get a key at OpenRouter. The default is Microsoft-Decision-1 (USD 0.042 per million input tokens, output free, about ¥0.3–0.7 a round); the model name can be the ID of any OpenRouter decision model, for example
typesafe/jev-1.14,openai/gpt-6-luna-decisionsorperplexity/pplx-decider-v1.2. Tested over a full round. Avoid models that read only the first ~2,000 tokens (such as Cloudflare Clef): they miss most of the kitchen. - Perplexity Decider: get an API key at Perplexity. The endpoint is
https://api.perplexity.ai/v1/decisions, with editable model namepplx-decider-v1.3. Requests carry only model, state and questions; billed by input, about USD 0.02 per million tokens. Browsers can call it directly, so it works online and in the local game. Tested over a full round. - Parallel Decisions (local game only): get an API key at Parallel. The endpoint is
https://api.parallel.ai/v1/decisions; the key goes in thex-api-keyheader, and requests carry only state, questions and mode (fast), with no model name (the API refuses other fields). The online version does not list it (its API does not accept browser calls). Tested over a full round. - StartLux-Decision (Bamboo, noticeable latency, free API): get a key at Bamboo Relay, which offers a free testing quota. Requests pass through the third-party Bamboo Relay. The endpoint is
https://api.bamboonode.dev/v1/decisions, with editable model namestartlux-decision-27b-autothink. Available locally and online; the browser calls Bamboo Relay directly with CORS. The preset disables automatic thinking. Full kitchen requests can still time out or arrive too late for the game. No developer connection verified with a real key and no full round tested. Website · API docs. Responses use the sameanswers.next_action.choiceandusageas Jev; both clients sendthink_mode: neverto disable thinking by default. Bamboo enables “None of the above” (choice: null) by default; both clients sendallow_none: falseto require a listed action. - Decision 3.0: an open decision model you host yourself; not selectable yet.
- Fast-thinking models (general chat models; thinking turned off and one JSON object requested for each provider)
- DeepSeek: platform.deepseek.com, model deepseek-flash (V4.1-Flash-1017 since 17 October). Tested over a full round.
- Alibaba Qwen3.8-27B: Model Studio, default model
qwen3.8-27b, billed by input at about ¥3 per million tokens; you can enterqwen-flashinstead (about ¥0.2–0.3 a round). Not yet tested. - Doubao Seed 2.0 lite: Volcano Ark, about ¥0.7–1.3 a round. Not yet tested.
- Gemini 3.5 Flash-Lite: Google AI Studio. The free tier allows 15 requests a minute and 500 a day; your network must reach Google. Jeff asks for his next step each time he finishes one, usually more than 15 times a minute (about 18 to 45 in fixed-seed simulations, more with faster replies); past 15 a minute the service refuses, and Jeff waits from a few seconds to half a minute before asking again, so with a free key he often stands still. Google no longer opens the 2.5 series to new accounts. Probed once with a synthetic snapshot.
- Cloudflare Workers AI (Gemma 4 / Llama 3.1): create an API token with Workers AI access in the Cloudflare dashboard and enter your 32-character account ID. The free tier is 10,000 Neurons a day per account: at about 7,000 input tokens per Jeff request, roughly 140 Gemma or 100 Llama requests. The default model is
@cf/google/gemma-4-26b-a4b-it; you can also enter@cf/meta/llama-3.1-8b-instruct-fp8. Online, tick I agree to forward Cloudflare requests through the demo server. Probed once with a synthetic snapshot. - OpenRouter chat models: the same OpenRouter key and a ready-filled address (
https://openrouter.ai/api/v1); enter the model ID from its page (vendor/model). Thinking is not turned off for you, so pick a model without deep thinking. Not yet tested. - Other Chat Completions provider: enter the base URL and model yourself, for example SiliconFlow
https://api.siliconflow.cn/v1. Thinking is not turned off for you, so thinking models may not finish an answer.
- Zhipu GLM-5.3-Flash is offered in the local game only: Zhipu's API does not accept cross-origin browser requests. The default model
glm-5.3-flashis pay as you go; enterglm-4.7-flashto use it free, though it often answers “too many requests” at peak times. Not yet tested.
On 2026-10-19 and 2026-10-20 we confirmed that the other online endpoints above accept cross-origin browser requests. StartLux's Bamboo Relay endpoint supports direct cross-origin requests, but has not been verified with a real key in this project. Whether a call really works is decided by Test and connect with your account. Model names change, so check your provider's console.
Response limits: chat replies are capped at 128 tokens and discarded when older than 15 seconds. Decision models use the separate systemone protocol without that chat output cap, but stale replies are also discarded (by default, after 6 seconds locally or 15 seconds online). StartLux's preset disables thinking, but networking, queueing and model processing still take time; passing the connection test does not establish that replies will arrive in time throughout a round.
Updating and testing locally
- End the current round and double-click
stop-web.commandin the old game folder. Then runstart-web.commandfrom the updated folder. Closing a tab or launching from another folder reuses an old server that is still running. - Under Settings → AI teammate, choose StartLux-Decision (Bamboo, noticeable latency, free API), enter the same key, press Test and connect, and play.
- Note any request failures and export the play session. The local run log under
logscontains specific error entries when further diagnosis is needed. Do not share credential configuration files.
Roughly what a round costs (estimate)
- Calls: the game asks for a decision at most once every 2 seconds. At the default speed a 180-game-second round takes about 4 minutes, so at most about 120 calls. In 11 complete rounds the developer played with Jev, rounds made 63–120 calls, median 111.
- Input per call: each request carries the full kitchen state and rules, about 27,000–37,000 characters; Jev measured about 14,000–20,000 input tokens per call. Other tokenizers differ, so estimate 10,000–20,000 input tokens and a few dozen output tokens per call.
- Per round: about 1.1–2.2 million input tokens and only a few thousand output tokens, so the input price dominates:
- at 1 CNY per million input tokens: about 1–2 CNY per round;
- at USD 0.10 per million: about USD 0.10–0.20 per round;
- at USD 0.30 per million: about USD 0.30–0.70 per round.
- Provider caching discounts may lower this; failed requests may also be billed. These are estimates; your provider's bill is what counts.
- After each round, Settings → Call limit shows that round's calls and the tokens of successful replies, so you can work out your own usage.
- To spend less, lower the per-round call limit (default 200; 60 calls is roughly half the cost). Once Jeff reaches the limit he stops asking and you can keep playing.