AINewsnow

This LLM cost function looks right. Can you spot the bug?

OpenAI's reasoning models bill you for thinking you never see. So it seems careful to add that thinking to your cost tracking, like this: from decimal import Decimal # Made-up prices, in USD per million tokens. INPUT_RATE = Decimal ( " 0.50 " ) OUTPUT_RATE = Decimal ( " 2.00 " ) def estimate_cost (…

Read the full story at DEV Community — AI ↗

Timeline · 1 report

  1. 2026-11-09 20:39 · DEV Community — AI
    This LLM cost function looks right. Can you spot the bug?

More stories

  1. Anthropic launches Claude Fable 5.2 and Mythos 5.2 models ahead of planned IPO — Anthropic (X)
  2. ChatGPT Enterprise Now Available Through AWS Marketplace — OpenAI News
  3. OpenAI launches ModRetro Chromatic Codex edition for building handheld games — OpenAI (X)
  4. DeepSeek's Harness agent app reaches 1.54 million daily users — Bloomberg AI
  5. Job seekers turn to ChatGPT to research what employees really think of employers — Fortune AI
  6. Kuken Industries uses OpenAI API to search 70 years of cooling tower drawings — OpenAI News
  7. Guides show how to create Diwali 2026 images and greetings with Gemini AI and ChatGPT — Mint AI
  8. Man sues OpenAI, alleging ChatGPT helped his wife plot his murder — CBS News Technology

Get the daily brief of stories like this at 6:30 every morning →