Repository navigation
Conversation
The hard-coded fallback pointed at the LLM gateway's plaintext port, which is being closed to the internet, and published that endpoint in this public repository; the script header already documents the variable as required.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为什么改 · Why
没设
DEEPSEEK_BASE_URL时,这个手动探活脚本会回落到写死的模型网关明文地址。这个端口正在对公网关闭,而这个默认值还把它公布在了公开仓库里。脚本头注释本来就写明这个变量是必需的。When
DEEPSEEK_BASE_URLis unset, this manual probe fell back to a hard-coded plaintext gateway endpoint. That port is being closed to the internet, and the default also published the endpoint in this public repository. The script header already documents the variable as required.改了什么 · What
ts/scripts/booking-copilot-planner-live-probe.ts:去掉DEEPSEEK_BASE_URL的默认值;没设置时启动即报错,做法与上一行的DEEPSEEK_API_KEY相同。DEEPSEEK_BASE_URLnow fails fast, exactly likeDEEPSEEK_API_KEYon the line above.最终 SHA 本地证据 · Local final-SHA evidence
TODO(所以是草稿 · hence draft):
30604065033dd6a3605d9169e7e80137c2c6a32a(经 GitHub API 提交,单文件 +2/−1)。cd ts && npx tsc --noEmit:未跑(作者这台机器拉不下仓库,没装依赖)。改动照搬apiKey已有的if (!x) throw收窄写法;baseUrl之后只在顶层用到,与apiKey的用法相同。GOTRY_SESSION_LIVE=0 ./scripts/run-all-tests.sh:未跑,原因同上。这个脚本只供手动运行,不在回归里。最小 E2E · Minimal E2E
N/A:手动探活脚本,不在产品运行路径上。唯一的行为变化:没设
DEEPSEEK_BASE_URL时直接报错,不再去连旧地址。N/A: a manual probe outside the product runtime; the only behavior change is failing fast instead of dialing the old endpoint.
语义/架构/维护兼容 · Semantics / architecture / maintenance
维护改动:设了
DEEPSEEK_BASE_URL的用法完全不变。回滚:revert 这个提交。旧地址仍留在仓库历史里,端口关掉后它就连不上了。CI · Continuous integration
见本 PR 的检查结果。
自查清单 · Checklist
main切出,单一关注点;只改了本 PR 的具名文件