편집자 노트

自动模型路由

A DeepSeek Harness bundle that adds an Auto model option. When a session selects auto, the plugin classifies each turn with a small Flash call and routes it to deepseek-v4-flash (SIMPLE) or deepseek-v4-pro (COMPLEX).

이것은 DeepSeek Harness(DSH) 플러그인입니다. 이 사이트는 GitHub README, 설치 정보, 유지보수 상태, 공개 보안 시그널을 모아 보여줍니다.

업스트림에서 중국어 README를 제공하지 않아 저장소 원본 내용을 표시합니다.

dsh-auto-model

English | 中文

A DeepSeek Harness bundle that adds an Auto model option. When a session selects auto, the plugin classifies each turn with a small Flash call and routes it to deepseek-v4-flash (SIMPLE) or deepseek-v4-pro (COMPLEX).

It is a plain-JavaScript bundle, so it installs straight from a git host with no build step. It uses only shipped core APIs and runs against an unmodified harness.

Install

Install into the web profile (the profile the dsh web command boots):

From a local checkout:

dsh plugin --profile web add ./dsh-auto-model

From GitHub:

dsh plugin --profile web add github:AL-spiritphoenix/dsh-auto-model

Then boot it:

dsh web

dsh web is the web profile's alias, so no --profile flag is needed. The model selector now lists Auto alongside Flash and Pro. The concrete model the router chooses is what the session log records in each request header.

How it works

  • The plugin registers its own deepseek-auto provider route, whose listModels() returns the auto entry at runtime. The directory entry is therefore independent of llm-deepseek's models config, so a settings.yaml override cannot hide it.
  • The plugin listens on the root agent/request waterfall (outside installModelSelection) and rewrites auto — whichever provider carried it — to a concrete provider/model before dispatch.
  • Each turn's first step sends one auxiliary classifier call to classifierModel (defaults to the fast model); later steps of the same turn reuse the decision. A failed call falls back to onClassifierError (default slow).

Configuration

All fields are optional and default to the DeepSeek V4 pair:

KeyDefaultMeaning
providerdeepseek-officialProvider route the concrete requests are routed to.
modelautoVirtual model id shown and submitted; never dispatched.
providerNameDeepSeek(Auto)Selector group label.
nameAutoSelector model label.
description(built-in)Selector detail.
fastModeldeepseek-v4-flashModel for SIMPLE tasks.
slowModeldeepseek-v4-proModel for COMPLEX tasks.
classifierModelfastModelModel serving the classifier call.
classifierPrompt(built-in)Classifier system prompt.
classifierMaxTokens16Classifier output-token cap.
classifierTimeoutMs10000Classifier call deadline.
contextBudgetChars4000Maximum task characters fed to the classifier.
onClassifierErrorslowTarget when classification fails or returns an unknown token.

Override them in the web profile's cordis.patch.yml:

- id: auto-model
  config:
    fastModel: deepseek-v4-flash
    slowModel: deepseek-v4-pro
    onClassifierError: slow

Limitations

  • auto is advertised as a text model, so an image-containing session cannot select it.
  • The classifier call is an auxiliary dispatch and is not counted by the token meter.
  • auto is session-local: after a restart, a non-blank session resumes from the logged concrete model rather than re-classifying.
REPOSITORY SIGNALS

보안 및 설치 증거

이 점수는 공개 저장소 메타데이터와 이 사이트에 등록된 설치 증거에만 기반하며, 코드 보안 감사와 다릅니다.

출처 추적 가능

공개 플러그인 카탈로그에서 왔으며, 공개 GitHub 저장소로 연결됩니다.

라이선스

GitHub 메타데이터에서 라이선스가 감지되지 않았습니다.

유지보수 활동

최근 180일 내 코드 업데이트가 있습니다.

설치 증거

재현 가능한 정확한 설치 메타데이터가 아직 등록되지 않았습니다. 저장소 설명에 따라 직접 확인하세요.

설치 라이프사이클 스크립트

검사한 패키지 메타데이터에 설치 라이프사이클 스크립트가 선언되지 않았습니다.

주의 사항missing-license