Skip to content

PaperCLI v2.1.0 - Reasoning Models & Service Architecture

Choose a tag to compare

@SXKDZ SXKDZ released this 07 Oct 23:47
· 8 commits to main since this release

🧠 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=medium

Configure 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

πŸ”— Full Changelog

v2.0.4...v2.1.0