feat: Update default models for extraction and normalization to GPT-5.6 Luna across configuration files and documentation. Remove deprecated code and improve pricing details in the UI components. Add tests to ensure correct model settings and pricing calculations.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
from services.extraction.domain.costs import compute_cost_from_usage
|
||||
|
||||
|
||||
def test_gpt_5_6_luna_pricing_includes_cached_tokens() -> None:
|
||||
usage = {
|
||||
"prompt_tokens": 2_000_000,
|
||||
"completion_tokens": 1_000_000,
|
||||
"prompt_tokens_details": {"cached_tokens": 1_000_000},
|
||||
}
|
||||
|
||||
cost = compute_cost_from_usage(usage, model="gpt-5.6-luna")
|
||||
|
||||
assert cost == {
|
||||
"input_usd": 0.20,
|
||||
"cached_input_usd": 0.02,
|
||||
"output_usd": 1.20,
|
||||
"total_usd": 1.42,
|
||||
}
|
||||
Reference in New Issue
Block a user