Skip to content

Add Perplexity cost tracking #31647

@vaibhav-artisan

Description

@vaibhav-artisan

Issue you'd like to raise.

costs shown on langsmith for perplexity API calls are inaccurate (even upto an order of magnitude). refer to their docs for how to calculate costs: https://docs.perplexity.ai/guides/models/sonar-reasoning-pro#detailed-pricing-breakdown-for-sonar-reasoning-pro

The problem is that pplx cost depends not only on input and output tokens but also on search queries and

Suggestion:

either add support for calculating this within langsmith platform or let users update the true cost while tracing an LLM call.

Metadata

Metadata

Assignees

Labels

help wantedGood issue for contributorsintegrationRelated to a provider partner package integrationinvestigateFlagged for investigationperplexity

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions