@alauda/doom 1.14.1 → 1.14.2

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.
@@ -251,7 +251,7 @@ export const translate = async ({ source, sourceContent, target, systemPrompt, u
251
251
  });
252
252
  let content = '';
253
253
  for await (const chunk of stream) {
254
- content += chunk.choices[0].delta.content ?? '';
254
+ content += chunk.choices[0]?.delta.content ?? '';
255
255
  }
256
256
  return restoreAnchors(content, anchors);
257
257
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": {