Skip to content

PressHub AI Co-Pilot v2.3.4

Choose a tag to compare

@eeftychiou eeftychiou released this 05 Sep 07:03
· 5 commits to main since this release
434034c

PressHub AI Co-Pilot v2.3.4

🚀 News Curation Token Optimization & Prompt Deduplication (Issue #120)

  • Resolved Duplicate Article Ingestion: Fixed an issue where harvested articles were being injected twice in news curation prompts (once via {articles_context} in the system prompt template and a second time in the user prompt), generating redundant 554k character payloads and doubling prompt token consumption (~198,670 tokens).
  • Streamlined System Prompt: Removed {articles_context} from default_greek_briefing.txt so system instructions remain purely editorial (~1,343 characters).
  • Deduplication Guard: Added logic in PressHub_AI_News_Curator::build_prompt() ensuring articles are sent in the user prompt by default, while gracefully handling custom templates that include {articles_context} by omitting duplicate user-prompt context. Payload size is cut in half (~278k chars / ~99k tokens).

⚙️ AI Provider Settings Clarification & Default Max Output Tokens (Issue #120)

  • Setting Clarification: Renamed Max Tokens: to Max Output Tokens: with an explanatory tooltip clarifying that it specifies maximum output tokens generated in model responses (completion tokens) and does not limit input prompt tokens.
  • Provider Card Tuning Display: Updated summary cards to display Max Output: <tokens>.
  • Increased Default to 20,000:
    • Increased PressHub_AI_Provider_Defaults::DEFAULT_MAX_TOKENS to 20,000.
    • Updated all provider templates (OpenAI, Anthropic, Gemini, Groq, Mistral, DeepSeek, Ollama, Custom) to default to 20,000 max output tokens.
    • Expanded HTML input upper bound to 65,536.

What's Changed

  • fix(curation): deduplicate articles in prompt and clarify max output tokens by @eeftychiou in #121

Full Changelog: v2.3.3...v2.3.4