Skip to content

Conversation

@kesku
Copy link
Collaborator

@kesku kesku commented Nov 9, 2025

Solves #59

Summary

Added an optional strip_thinking parameter to perplexity_research and perplexity_reason tools that removes <think>...</think> tags from responses to save context tokens.

Changes

  • strip_thinking boolean parameter to perplexity_research and perplexity_reason tool schemas
  • stripThinkingTokens() helper function using regex to remove thinking blocks
  • New test

@kesku kesku merged commit c82fcf0 into main Nov 9, 2025
1 check passed
@kesku kesku deleted the kesku/strip-thinking-tokens branch November 9, 2025 00:54
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.

2 participants