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:
erik
2026-08-16 15:39:01 -05:00
parent 046f26c20c
commit 3b01456875
38 changed files with 615 additions and 639 deletions
+18
View File
@@ -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,
}