Details

Refactor cost calculation to support multimodal inputs by adding separate fields for text, image, audio, and video costs in ModelPrice and ModelCostData. Update CostService and SpanCostCalculator to handle new pricing structure and calculations accordingly.

Issues

Resolves #1782

Testing

cd apps/opik-backend && mvn test -Dtest="SpansResourceTest$CreateSpan#createAndGetCost"

image

cd sdks/python && python -m pytest tests/unit/llm_usage/test_multimodal_usage.py -v --tb=short

image

Documentation

/claim #1782

Claim

Total prize pool $100
Total paid $0
Status Pending
Submitted June 25, 2025
Last updated June 25, 2025

Contributors

рооройрпЛ

рооройрпЛроЬрпНроХрпБрооро╛ро░рпН рокро┤ройро┐роЪрпНроЪро╛рооро┐

@SmartManoj

100%

Sponsors

CO

Comet

@comet-ml

$100