logoalt Hacker News

Codex on AWS bedrock bug causing 10x charges

66 pointsby TheP1000today at 3:17 AM17 commentsview on HN

Comments

amlutotoday at 4:28 AM

Wow, that whole thread is borderline incoherent, presumably generated by an AI without adequate oversight.

Here are the docs:

https://developers.openai.com/api/docs/guides/prompt-caching...

The thread has little explanation as to what weird thing they’re doing to Codex that is making the default work poorly, and it kind of seems like it’s getting confused about whether it wants to set the caching mode or the breakpoint or both.

In any case, I find the behavior change interesting. It sounds to be like 5.5 and below may have been using a conventional attention scheme where a cached KV sequence can be easily used to restore a prefix of itself, but perhaps 5.6 is using linear attention or LSTM or another recurrent scheme where you cannot rewind the model state by just truncating it.

show 3 replies
TheP1000today at 3:17 AM

Our codex on AWS Bedrock read / write cache ratio was less than 5%. Cache writes are very expensive and they were never being used. This results in codex on Bedrock causing ~10x what it should due to no caching and massive writes.

The workaround in issue resolved for me: web_search = "disabled"

show 3 replies
spacedoutmantoday at 4:41 AM

Something is wrong with the codex app too, burning usage like crazy lately.

show 2 replies
hk1337today at 4:38 AM

I wonder if it's related to Codex wearing out SSDs.

edoceotoday at 4:08 AM

Loaded question: would an openrouter or similar solution caught this before the $BigProblem showed up?

hahuhstoday at 5:18 AM

[dead]