mirror of
https://ghproxy.cflmy.top/https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-12-01 17:49:35 +08:00
initialize() mounts DeepSeek request authentication before the fallback official route in a composition that has none. When the route did not mount, for example for a DEEPSEEK_BASE_URL that is no HTTP(S) root, the authentication service stayed in the composition and shutdown() skipped it, because shutdown releases both only after the route mounted. A route whose disposal threw skipped the service the same way. A failed route mount now removes the service that call mounted, and shutdown releases the service whether or not the route's disposal succeeds.