You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test was stubbing an OpenAI response with `cache_write_tokens`, but
ruby_llm's OpenAI provider only extracts that field as of 1.15.0. On
1.8.0-1.14.1 it hardcodes `cache_creation_tokens` to 0 causing the test
to fail.
Split this test into two tests:
- OpenAI: asserts only `cache_read.input_tokens` (the field every
supported provider version exposes)
- Anthropic: asserts both `cache_read` and `cache_creation` since
Anthropic has surfaced both since the accessors were added
Both tests skip on ruby_llm < 1.9.0 where the `cached_tokens` /
`cache_creation_tokens` Message accessors don't exist yet.
0 commit comments