mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-05 20:28:23 +00:00
X-Cashu handlers do not rewrite the upstream's echoed model string, so get_x_cashu_cost previously priced whatever wire name the upstream reported — the most collapse-prone alias lookup of all. The routed Model is now threaded from forward_x_cashu_request through the chat and Responses handler chains (and the litellm messages path) into get_x_cashu_cost, so cost and refund are computed from the model that actually served. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>