litellm/litellm-rust/crates/core-utils/src
yujonglee 05cf428761
feat(rust): settle EdenAI Messages reported cost (#45698)
* feat(edenai): settle native Messages reported cost

* test(rust): add live EdenAI Messages contract cases

* refactor(rust): settle call cost once as an ExecutionFacts variant

The route now decides Cost (Reported, CacheHit or Deferred) from the
result source and the provider's reported figure. The legacy callback
adapter only projects a Reported amount onto provider_reported_cost and
no longer writes response_cost, which the Python calculator derives

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* refactor(rust): keep EdenAI wire shaping independent of Invoke

* style(rust): format cost settlement imports

* fix(rust): trust provider costs without bypassing configured pricing

* fix(rust): clear untrusted response costs before spend settlement

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-12 17:39:08 -07:00
..
exception_mapping_utils test(rust): rename the standalone 429 test to match the rule 2026-09-18 14:01:09 -07:00
prompt_templates refactor(rust): derive strum VariantArray and string conversions (#45434) 2026-10-08 21:24:49 +00:00
call_arguments.rs refactor(rust): share anthropic types, request helpers, and streaming contracts across crates (#43426) 2026-09-27 14:53:12 -07:00
core_helpers.rs refactor(rust): add shared llms wire type derives (#43730) 2026-09-29 09:19:33 -07:00
dot_notation_indexing.rs feat(rust): shape Anthropic Messages requests natively (#42982) 2026-09-24 19:08:32 +00:00
get_llm_provider_logic.rs feat(rust): settle EdenAI Messages reported cost (#45698) 2026-10-12 17:39:08 -07:00
get_provider_specific_headers.rs refactor(rust): add shared llms wire type derives (#43730) 2026-09-29 09:19:33 -07:00
lib.rs feat(rust): shape Anthropic Messages requests natively (#42982) 2026-09-24 19:08:32 +00:00
params.rs refactor(rust): add types and core-utils crates, unify the provider error 2026-09-17 22:01:14 -07:00
secret_redaction.rs feat(logger): dispatch Python logging through the Rust diagnostics processor (#42616) 2026-09-22 18:44:15 -07:00
serde_compat.rs refactor(rust): add shared llms wire type derives (#43730) 2026-09-29 09:19:33 -07:00
settings.rs refactor(rust): share anthropic types, request helpers, and streaming contracts across crates (#43426) 2026-09-27 14:53:12 -07:00
url_utils.rs refactor(rust): share anthropic types, request helpers, and streaming contracts across crates (#43426) 2026-09-27 14:53:12 -07:00