Skip to content

fix: preserve Perplexity usage cost in non-strict mode#7

Draft
voodoohop wants to merge 1 commit into
mainfrom
codex/perplexity-usage-cost-passthrough
Draft

fix: preserve Perplexity usage cost in non-strict mode#7
voodoohop wants to merge 1 commit into
mainfrom
codex/perplexity-usage-cost-passthrough

Conversation

@voodoohop

Copy link
Copy Markdown
Member
  • Preserves full Perplexity usage in non-strict non-stream responses so downstream billing can read provider-reported request cost.
  • Keeps strict OpenAI compliance token-only for non-stream and stream responses.
  • Adds focused transform tests for non-strict passthrough and strict stripping.

Needed by pollinations/pollinations search billing work so non-stream Perplexity requests can bill from usage.cost.request_cost.

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.

1 participant