ylxmf2005/dsh-openai-server-compaction

ylxmf2005★ 0TypeScript最后同步: 2026-08-21

在 GitHub 打开

OpenAI Responses adapter with durable server-side compaction for DeepSeek Harness.

README 摘要

dsh-openai-server-compaction A native DeepSeek Harness plugin that adds Codex-style server compaction to OpenAI Responses routes managed by DSH's built-in llm-pi-ai plugin. It uses an API key. OAuth and the ChatGPT Codex backend are not implemented. 中文说明 How it works llm-pi-ai remains the single owner of provider connection and model data: - provider route name and display name - api: openai-responses - API base URL and credential reference - model IDs, context windows, output capabilities, and custom headers This plugin stores only per-route compaction policy. For each enabled, explicitly configured Responses route it: - handles normal model requests through POST /v1/responses - sends manual, token-pressure, and overflow compaction through Codex Remote Compaction V2: it appends { "type": "compaction trigger" } to a normal POST /v1/responses request and enables the remote compaction v2 feature - retains up to 64,000 tokens of recent real user messages together with the single opaque compaction item returned by the server, stores that native replacement history outside session JSONL, and restores it after restart - writes a portable text checkpoint into normal DSH history for other …

在 GitHub 查看完整 README →
工具/开发compactiondeepseek-harnessdsh-pluginopenairesponses-api

分类