Repository navigation
Releases
Releases · chriz-3656/deepseek-tui
deepseek-tui v0.7.0
Added
- Local API server mode (
--serve [ADDR], default127.0.0.1:8080, and
--serve-key KEY/DEEPSEEK_SERVE_KEY) enabling OpenAI/Anthropic SDKs and
coding agents (OpenCode, Codex CLI, Claude Code, Cline, Roo Code, Aider) to
connect directly. - Multi-protocol endpoints:
GET /health,GET /v1/models,
POST /v1/chat/completions(OpenAI Chat Completions),POST /v1/responses
(OpenAI Responses API withprevious_response_id), andPOST /v1/messages
(Anthropic Messages API). - Virtual model routing for
deepseek-chat,deepseek-reasoner,
deepseek-chat-search, anddeepseek-reasoner-search, plusweb_searchtool
andweb_search_optionsmapping. - Dual-format streaming and non-streaming tool-call parser supporting both
<tool_call>JSON blocks and DeepSeek's native DSML tags
(<|DSML|...>/<||DSML||...>) across split SSE chunks. - Prefix-matched session cache (
serveSessionCache) and concurrency limiter so
multi-turn agent tool loops stay within one DeepSeek chat session. - Comprehensive unit and mock-upstream tests in
test/server_test.go.
Fixed
APIClient.Complete(api.go) now detects HTTP200 OKJSON error payloads
(such as40003 INVALID_TOKENor40303 CHALLENGE_REQUIRED) instead of
silently returning an empty completion, and--servemaps them to proper HTTP
error responses (403/502).
deepseek-tui v0.6.0
Added
- Document & File Attachments: support for uploading and attaching local documents
via/api/v0/file/upload_filewith nativeDeepSeekHashV1proof-of-work negotiation. - Terminal Drag-and-Drop: dragging and dropping any file from your desktop or file
manager into the TUI automatically parses the file path, strips quotes/URI schemes,
unescapes special characters, and sets it up as an attachment. - CLI File Attachment: added
-f/--file PATHflag in CLI mode, as well as automatic
path detection for dropped files in the CLI prompt argument. - TUI Mode Toggles: hotkeys
ctrl+d(toggle DeepThink reasoning mode on/off) and
ctrl+s(toggle web search retrieval on/off) with live header badges[think]/[search]. - CLI Mode Toggles: added
--think,--no-think,--search, and--no-searchflags. - Mid-Stream Cancellation: press
escin the TUI during active streaming to abort in-flight
generation immediately without losing prior chat turns or exiting the application. - Conversation History Export: export entire chat sessions with collapsible thinking
process blocks to clean Markdown viaein the recent chats drawer or-e/--export IDin CLI mode. - Comprehensive
--helpoutput with full CLI flags, TUI hotkeys, and attachment instructions.
Changed
- Enhanced error envelope parsing to properly unwrap server business errors (
biz_code/biz_msg)
when payloads return null business data. - Improved empty conversation view with discovery hint for file attachments.
deepseek-tui v0.5.1
Added
-1/--firstto print only the first selected code block, useful for
redirecting one script to a file.-l/--langto filter blocks by language, including comma-separated
lists.shellmatchessh,bash,zsh, andfish; common pairs such as
js/javascript,py/python,ts/typescript, andgolang/goare
recognized.- Automatic code-only instruction in
-cmode asking for one fenced block
with all commands inside it.--no-hintsends the prompt unchanged. - Tests for language labels, filtering, selection, and prompt construction.
Changed
-cnow exits with status 3 when no fenced block is found or no block
matches--lang, instead of silently returning 0.- Code-mode answers are more likely to contain a single final script instead
of several alternatives.
deepseek-tui v0.5.0
Added
- Non-interactive CLI mode: passing prompt arguments runs a one-shot query and
streams the visible answer to stdout. Running with no arguments still opens
the interactive TUI. -c/--codeflag that prints only the contents of fenced Markdown code
blocks, discarding surrounding conversational text.- Argument parsing that accepts flags before or after the prompt, supports
--as an end-of-flags marker, and joins all non-flag arguments into one
prompt. -h/--helpoutput documenting CLI usage, exit codes, and token lookup.- Tests for argument parsing, code-block extraction, and the CLI completion
payload.
Changed
- Thinking is enabled for TUI requests but disabled for CLI requests, keeping
internal monologue out of stdout. --versionand token-only--tokeninvocations keep their previous
behavior;--tokencombined with a prompt enters CLI mode.
deepseek-tui v0.4.0
Full Changelog: v0.3.1...v0.4.0