utilitas 1998.2.20 → 1998.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +1 -0
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -707,6 +707,7 @@ const promptChatGPT = async (content, options = {}) => {
|
|
|
707
707
|
await packGptResp(chunk, { ...options || {}, processing: true })
|
|
708
708
|
), LOG);
|
|
709
709
|
}
|
|
710
|
+
chunk.choices?.[0] || (chunk.choices = [{}]); // handle empty choices for Azure APIs
|
|
710
711
|
chunk.choices[0].message = {
|
|
711
712
|
content: resultText,
|
|
712
713
|
...resultAudio.length ? { audio: { data: resultAudio } } : {},
|
package/lib/manifest.mjs
CHANGED