What's new
feat(ai): customFetch support for OpenAI providers
Pass a custom fetch implementation to OpenAI completions and responses providers via StreamOptions.customFetch. Useful for TEE-based encrypted transports, custom auth schemes, or non-standard proxies.
await streamSimple(model, context, {
customFetch: myEncryptedFetch,
});Ref: earendil-works#1017
fix(openai-responses): uppercase tool call IDs no longer rejected
The OpenAI Responses API requires lowercase IDs. sanitizedCallId and sanitizedItemId are now lowercased before truncation, fixing Invalid 'input[i].id' errors from providers that return uppercase IDs (e.g. fc_c1Knv...).
Ref: earendil-works#977
Packages
npm install open-pi-ai@0.57.2
npm install open-pi-coding-agent@0.57.2