dsh plugins中文
← Back to popular plugin directory

Dsh Llm Finish Reason Tolerance

michael-han-il/dsh-llm-finish-reason-tolerance · model-adapters

A DeepSeek Harness host plugin that makes the agent tolerate OpenAI-compatible providers whose streaming responses end without a finishreason.

★ 2GitHub stars
0Forks
2026-08-25Last updated
JavaScriptLanguage
MITLicense

Key features

  • nothing was delivered, or the error is anything else → passed through untouched
  • Use apiopenai-completions with the full …/api/v2/cortex/v1 base URL.
  • The rewrite fires only for pi-ai's Stream ended without finish_reason terminal error and only when content was delivered.
  • The OpenAI SDK authenticates with Authorization: Bearer from apiKeyEnv automatically — no headers needed.
  • The plugin fixes the missing finish_reason

Requirements

  • DeepSeek Harness (any recent deployment
  • @deepseek-ai/cordis ≥ 4 and @deepseek-ai/schemastery ≥ 3 are already present)

Install command

dsh plugin --profile web add github:michael-han-il/dsh-llm-finish-reason-tolerance
View GitHub repository ↗Back to popular plugin directory