PaperCLI v2.1.0 - Reasoning Models & Service Architecture
π§ OpenAI Reasoning Models Support
This release adds full support for OpenAI's reasoning models (o1, o3-mini, etc.) with configurable thinking content display and improved service architecture.
β¨ Key Features
β’ Reasoning Model Integration β Native support for OpenAI reasoning models with visible thinking process
β’ ChatService Extraction β Refactored chat logic into dedicated ChatService for better separation of concerns
β’ Loading Animations β Visual feedback during chat response generation
β’ Configurable Reasoning Effort β Choose from minimal/low/medium/high effort levels for reasoning models
βοΈ Configuration
New environment variables for reasoning models:
β’ OPENAI_SHOW_THINKING β Display thinking content for reasoning models (true/false, default: false)
β’ OPENAI_REASONING_EFFORT β Set reasoning effort level (minimal/low/medium/high, default: medium)
Example:
export OPENAI_MODEL="o3-mini"
export OPENAI_SHOW_THINKING=true
export OPENAI_REASONING_EFFORT=mediumConfigure via UI: Use /config command and navigate to the LLM tab for interactive settings.
ποΈ Architecture Improvements
β’ ChatService β Centralized chat operations including:
β OpenAI client initialization
β Token estimation with tiktoken
β PDF text extraction and cleaning
β Paper context building for LLM
β Streaming response handling with callbacks
β’ Callback Architecture β Replaced message-based streaming with direct callback functions for cleaner, more maintainable code
β’ Dialog Simplification β ChatDialog now focuses on UI rendering while ChatService handles business logic
π¦ Installation
# Via pipx (recommended)
pipx install git+https://github.com/SXKDZ/papercli.git@v2.1.0
# Via pip
pip install git+https://github.com/SXKDZ/papercli.git@v2.1.0
# Update existing installation
pipx reinstall git+https://github.com/SXKDZ/papercli.git@v2.1.0