backend-manager 3.2.38 → 3.2.39
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/package.json
CHANGED
|
@@ -86,13 +86,15 @@ OpenAI.prototype.request = function (options) {
|
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
assistant.log('callOpenAI():', ...arguments);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
function _load(input) {
|
|
93
93
|
// console.log('*** input!!!', input.content.slice(0, 50), input.path);
|
|
94
94
|
// console.log('*** input.content', input.content.slice(0, 50));
|
|
95
95
|
// console.log('*** input.path', input.path);
|
|
96
|
+
_log('Loading', input);
|
|
97
|
+
|
|
96
98
|
return powertools.template(
|
|
97
99
|
input.path ? jetpack.read(input.path) : input.content,
|
|
98
100
|
input.settings,
|
|
@@ -100,6 +102,7 @@ OpenAI.prototype.request = function (options) {
|
|
|
100
102
|
.trim();
|
|
101
103
|
}
|
|
102
104
|
|
|
105
|
+
// Log
|
|
103
106
|
_log('Starting', self.key);
|
|
104
107
|
_log('Starting', options);
|
|
105
108
|
|
|
@@ -111,6 +114,7 @@ OpenAI.prototype.request = function (options) {
|
|
|
111
114
|
? { type: 'json_object' }
|
|
112
115
|
: undefined;
|
|
113
116
|
|
|
117
|
+
// Log
|
|
114
118
|
_log('Prompt', prompt);
|
|
115
119
|
_log('Message', message);
|
|
116
120
|
_log('User', user);
|