summaryrefslogtreecommitdiff
path: root/Omni
diff options
context:
space:
mode:
Diffstat (limited to 'Omni')
-rw-r--r--Omni/Agent/Engine.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Omni/Agent/Engine.hs b/Omni/Agent/Engine.hs
index 2da7722..7da7fa5 100644
--- a/Omni/Agent/Engine.hs
+++ b/Omni/Agent/Engine.hs
@@ -531,8 +531,8 @@ runAgent engineCfg agentCfg userPrompt = do
Right chatRes -> do
let msg = chatMessage chatRes
tokens = maybe 0 usageTotalTokens (chatUsage chatRes)
- -- Use actual cost from API response when available (OpenRouter returns cost in credits = $0.01)
- -- Convert from credits to cents by multiplying by 100
+ -- Use actual cost from API response when available
+ -- OpenRouter returns cost in dollars, convert to cents
cost = case chatUsage chatRes +> usageCost of
Just actualCost -> actualCost * 100
Nothing -> estimateCost (llmModel llm) tokens