@3-/aiapi 0.1.31 → 0.1.32

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.
Files changed (2) hide show
  1. package/factCheck.js +2 -2
  2. package/package.json +1 -1
package/factCheck.js CHANGED
@@ -105,7 +105,7 @@ txtLi = (txt) => {
105
105
  }
106
106
  pre = t = void 0;
107
107
  };
108
- txt_li = txt.split('\n');
108
+ txt_li = txt.replaceAll('**', '').split('\n');
109
109
  out: //;
110
110
  for (i of txt_li) {
111
111
  if (i.startsWith('- id:')) {
@@ -157,7 +157,7 @@ export default retry(async(chat, li) => {
157
157
  if (!groundingChunks) {
158
158
  return new Map();
159
159
  }
160
- content = content.parts[0].text.replaceAll('**', '');
160
+ content = content.parts[0].text;
161
161
  console.log(content);
162
162
  url_li = [];
163
163
  for (x of groundingChunks) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3-/aiapi",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://atomgit.com/i18n/lib.git"