pi-mono/packages
David Brailovsky ab30693d64
fix(ai): upgrade openai SDK to 7.19.0 (#10044)
* fix(ai): upgrade openai SDK to 7.19.0

Adds the "fast" service tier to the SDK types, needed to price
GPT-6 Fast mode requests correctly. Drops the local
prompt_cache_options type, which the SDK now defines.

* fix(coding-agent): check Cloudflare compat request via fetch instead of SDK mock

pi-ai now resolves its own nested openai 7.x while evals keeps 6.x at the
root, so vi.mock("openai") in coding-agent no longer reached pi-ai's client.
Capture the outgoing request with a fake fetch and assert the URL and headers.

* fix(ai): drop any casts for stream_options and max_tokens in openai-completions

stream_options is typed by the SDK, so assign it directly. max_tokens is
deprecated by OpenAI but still needed for OpenAI-compatible providers
that reject max_completion_tokens; use a narrow cast instead of any to
avoid the deprecation warning.
2026-09-25 17:27:12 +02:00
..
agent feat: build with TypeScript 7 and run sources with plain node 2026-09-25 13:14:33 +02:00
ai fix(ai): upgrade openai SDK to 7.19.0 (#10044) 2026-09-25 17:27:12 +02:00
chord feat: build with TypeScript 7 and run sources with plain node 2026-09-25 13:14:33 +02:00
client feat: build with TypeScript 7 and run sources with plain node 2026-09-25 13:14:33 +02:00
coding-agent fix(ai): upgrade openai SDK to 7.19.0 (#10044) 2026-09-25 17:27:12 +02:00
durable feat(durable): add conversation document forks 2026-09-25 16:17:53 +02:00
evals feat: build with TypeScript 7 and run sources with plain node 2026-09-25 13:14:33 +02:00
protocol feat: build with TypeScript 7 and run sources with plain node 2026-09-25 13:14:33 +02:00
server feat: build with TypeScript 7 and run sources with plain node 2026-09-25 13:14:33 +02:00
session-backends/sqlite-node feat: build with TypeScript 7 and run sources with plain node 2026-09-25 13:14:33 +02:00
telemetry feat: build with TypeScript 7 and run sources with plain node 2026-09-25 13:14:33 +02:00
tui fix(tui): keep cursor visible when overlays close after stop 2026-09-25 13:30:50 +02:00