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.
Resolves #1782
cd apps/opik-backend && mvn test -Dtest="SpansResourceTest$CreateSpan#createAndGetCost"
cd sdks/python && python -m pytest tests/unit/llm_usage/test_multimodal_usage.py -v --tb=short
/claim #1782
рооройрпЛроЬрпНроХрпБрооро╛ро░рпН рокро┤ройро┐роЪрпНроЪро╛рооро┐
@SmartManoj
Comet
@comet-ml