fix(ai): add direct OpenAI completions prompt caching closes #3426

This commit is contained in:
Mario Zechner
2026-04-20 15:37:29 +02:00
parent 6b55d6859d
commit aa1b587b10
3 changed files with 149 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
### Fixed
- Fixed OpenRouter Meta tests by switching `meta-llama/llama-4-maverick` to `meta-llama/llama-4-scout` to avoid type-check failures from model-catalog drift.
- Fixed direct OpenAI Chat Completions requests to map `sessionId` and `cacheRetention` to OpenAI prompt caching fields, sending `prompt_cache_key` when caching is enabled and `prompt_cache_retention: "24h"` for direct `api.openai.com` requests with long retention ([#3426](https://github.com/badlogic/pi-mono/issues/3426))
## [0.67.68] - 2026-04-17