@mathrunet/masamune 0.1.4 → 0.1.7
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## [0.1.7](https://github.com/mathrunet/node_masamune/compare/v0.1.6...v0.1.7) (2023-04-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### fix
|
|
5
|
+
|
|
6
|
+
* Added because there is no type. ([f1bac47](https://github.com/mathrunet/node_masamune/commit/f1bac474d835a9581c2340c57f6da9bf8aad539a))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [0.1.6](https://github.com/mathrunet/node_masamune/compare/v0.1.5...v0.1.6) (2023-04-07)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### fix
|
|
14
|
+
|
|
15
|
+
* Drop the version of node-fetch to eliminate the error. ([36b2a89](https://github.com/mathrunet/node_masamune/commit/36b2a895943e4081d8cc51750172e594c73fe637))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## [0.1.5](https://github.com/mathrunet/node_masamune/compare/v0.1.4...v0.1.5) (2023-03-08)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### fix
|
|
23
|
+
|
|
24
|
+
* Changed to return all. ([db69ae6](https://github.com/mathrunet/node_masamune/commit/db69ae67fa65d2e9b83a5b80bb4c00dc37d9e430))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
1
28
|
## [0.1.4](https://github.com/mathrunet/node_masamune/compare/v0.1.3...v0.1.4) (2023-03-07)
|
|
2
29
|
|
|
3
30
|
|
|
@@ -81,8 +81,7 @@ module.exports = (regions) => functions.region(...regions).https.onCall((query)
|
|
|
81
81
|
"temperature": temperature,
|
|
82
82
|
}),
|
|
83
83
|
});
|
|
84
|
-
|
|
85
|
-
return data.choices[0];
|
|
84
|
+
return (yield res.json());
|
|
86
85
|
}
|
|
87
86
|
catch (err) {
|
|
88
87
|
console.log(err);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai_chat_gpt.js","sourceRoot":"","sources":["../../src/functions/openai_chat_gpt.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAgD;AAChD,4DAA+B;AAE/B;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,OAAO,GAAG,CAAC,OAAiB,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,CAC7E,CAAO,KAAK,EAAE,EAAE;;IACZ,IAAI;QACA,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC;QACjD,MAAM,OAAO,GAAG,KAAK,CAAC,OAAmC,CAAC;QAC1D,MAAM,KAAK,GAAG,MAAA,KAAK,CAAC,KAA2B,mCAAI,eAAe,CAAC;QACnE,MAAM,WAAW,GAAG,MAAA,KAAK,CAAC,WAAiC,mCAAI,CAAC,CAAC;QACjE,IAAI,OAAO,CAAC,MAAM,IAAI,CAAC,EAAE;YACrB,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,kBAAkB,EAAE,oCAAoC,CAAC,CAAC;SAClG;QAED,MAAM,GAAG,GAAG,MAAM,IAAA,oBAAK,EAAC,4CAA4C,EAAE;YAClE,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACL,cAAc,EAAE,kBAAkB;gBAClC,eAAe,EAAE,UAAU,MAAM,EAAE;aACtC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACjB,OAAO,EAAE,KAAK;gBACd,UAAU,EAAE,OAAO;gBACnB,aAAa,EAAE,WAAW;aAC7B,CAAC;SACL,CAAC,CAAC;QAEH,
|
|
1
|
+
{"version":3,"file":"openai_chat_gpt.js","sourceRoot":"","sources":["../../src/functions/openai_chat_g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package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mathrunet/masamune",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Manages packages for the server portion (NodeJS) of the Masamune framework.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,11 +31,12 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"firebase-admin": "^11.4.1",
|
|
33
33
|
"firebase-functions": "^4.1.1",
|
|
34
|
-
"node-fetch": "^
|
|
34
|
+
"node-fetch": "^2.6.9",
|
|
35
35
|
"typescript": "^4.9.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/jest": "^29.2.5",
|
|
39
|
+
"@types/node-fetch": "^2.6.3",
|
|
39
40
|
"conventional-changelog-cli": "^2.2.2",
|
|
40
41
|
"jest": "^29.3.1",
|
|
41
42
|
"ts-jest": "^29.0.3"
|