Skip to content

[BOUNTY] Add /pipe Command (#66) and Token Stats (#64)#1

Open
597226617 wants to merge 2 commits intomainfrom
feature/pipe-command-and-stats
Open

[BOUNTY] Add /pipe Command (#66) and Token Stats (#64)#1
597226617 wants to merge 2 commits intomainfrom
feature/pipe-command-and-stats

Conversation

@597226617
Copy link
Copy Markdown
Owner

实现功能

Scottcjn#66 - /pipe 命令(5 RTC)

  • 保存最后一条助手回复到文件
  • 支持自定义文件名或自动生成时间戳文件名
  • 显示文件路径、大小和行数

Scottcjn#64 - Token 速度显示(10 RTC)

  • 在 /status 命令中显示生成统计
  • 显示格式:[X.X tok/s | XXX tokens | X.Xs]
  • 追踪累计会话统计

总奖金:15 RTC

测试

  • 代码已测试
  • 功能正常工作

关联 Issue

孙备 added 2 commits March 22, 2026 02:52
Added GPU detection and Metal status for discrete AMD GPUs:
- _detect_gpu_info(): Detects discrete vs integrated GPUs on macOS
- /status command: Shows GPU model, type, and Metal support status
- apply-metal-fix.sh: Script to apply StorageModeManaged patch to llama.cpp
- Tests: 12 test functions covering GPU detection, Metal support, error handling

Tested hardware:
- Mac Pro 2013 (AMD FirePro D500/D700)
- iMac 2014-2019 (AMD Radeon)
- MacBook Pro 2015-2019 (AMD Radeon Pro)

Reference: ggml-org/llama.cpp#20615

Wallet: 0xc0A7b634A8b5Ff3a7F310D7cCC786FE3f6270B1f7
…cottcjn#66)

Features implemented:
- /pipe command: Save last assistant response to file
  - Usage: /pipe [filename]
  - Auto-generates timestamp-based filename if not provided
  - Shows file path, size, and line count after saving

- Enhanced /status command: Shows last generation stats
  - Displays [X.X tok/s | XXX tokens | X.Xs] format
  - Shows both session stats and last turn stats

Implementation details:
- Uses existing LAST_ASSISTANT_RESPONSE variable
- Uses existing LAST_GENERATION_STATS and SESSION_STATS
- No external dependencies added
- Fixed global declaration syntax error

Wallet: 孙备
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BOUNTY: 5 RTC] Add /pipe command to save last response to file [BOUNTY: 10 RTC] Add token-per-second display and generation stats

1 participant