Skip to content

Releases: leisvip/Chat2API

1.4.0

03 May 19:38

Choose a tag to compare

Chat2API v1.4.0

🚀 New Features

DeepSeek V4 Pro / V4 Flash Support

  • Added deepseek-v4-pro and deepseek-v4-flash model families
  • Support for Think, Search, and Think+Search variants
  • Legacy deepseek-chat and deepseek-reasoner model names preserved
  • Auto-detect pro model type from model name

Kimi K2.6 Upgrade

  • Added Kimi-K2.6 model support
  • Updated auth help text: recommend browser Cookie kimi-auth field
  • Backward compatible with K2.5

Multi-Turn Conversation Session Reuse

  • Sessions now carry provider-side IDs (providerSessionId, parentMessageId)
  • DeepSeek, Kimi, Qwen, Z.ai adapters support session continuation
  • History hash-based session matching for stable conversation identity
  • Full conversation context preserved via messagesToPrompt utility

Account Weight-Based Load Balancing

  • Weighted random selection at account level within round-robin strategy
  • Per-account weight configuration (0-100, default 100)
  • Weights saved to backend config and restored on load

Settings Draft Mode

  • Appearance, General, and Data settings now use draft mode
  • Edit multiple settings before clicking Save
  • Visual feedback on save success/failure

🐛 Bug Fixes

Qwen AI Silent Content Drop

  • Fixed content from non-standard phases being silently dropped
  • Thinking mode now defaults to enabled (enable_thinking !== false)
  • auto_thinking always set to true for better reasoning

Qwen Context Loss

  • Multi-turn conversation history converted to single prompt via messagesToPrompt
  • Full context preserved across requests without relying on provider session state

Credential Encryption Toggle

  • credentialEncryption config field now properly wired to backend
  • setCredentialEncryption persists to backend config
  • Encryption disabled returns plaintext when toggle is off

Data.json Performance

  • Logs migrated to separate logs-data.json store
  • LogManager uses buffered writes with 2s flush interval
  • IPC handlers route log reads/writes to dedicated logs store
  • Dashboard no longer calls checkAllStatus on every load (reduces API calls)

📦 Other Changes

  • tsconfig.node.json no longer includes src/shared/**/*.ts in main process compilation
  • New test suites: session-manager (27 tests), log-buffering (5 tests)
  • Z.ai chat ID caching for account-level reuse

📥 Downloads

Platform File
macOS (Apple Silicon) Chat2API-1.4.0-mac-arm64.dmg
macOS (Intel) Chat2API-1.4.0-mac-x64.dmg
Windows Chat2API-1.4.0-x64-setup.exe
Linux (AppImage) Chat2API-1.4.0-x86_64.AppImage
Linux (deb) Chat2API-1.4.0-amd64.deb