mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
f84c4c89f5
The openai-completions provider now calls .withResponse() on the
create() result to surface HTTP status/headers for the new onResponse
hook (d131fcd4). The FakeOpenAI test mock only returned an async
iterable, so 4 tests in openai-completions-tool-choice.test.ts that
actually consume the stream failed with "withResponse is not a function".
Updated the mock to return a Promise augmented with .withResponse()
resolving to { data: <async iterable>, response: { status, headers } }.
closes #3304
f84c4c89f5
ยท
2026-04-16 22:57:30 +02:00
History