@futdevpro/nts-dynamo 1.11.16 → 1.11.17
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/build/_modules/discord-assistant/_services/dias-chunk.data-service.d.ts +1 -1
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.d.ts.map +1 -1
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js +31 -13
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js.map +1 -1
- package/build/_modules/discord-assistant/_services/dias-io.control-service.js +6 -2
- package/build/_modules/discord-assistant/_services/dias-io.control-service.js.map +1 -1
- package/build/_modules/discord-bot/_collections/dibo-global-settings.conts.d.ts +1 -1
- package/build/_modules/discord-bot/_collections/dibo-global-settings.conts.d.ts.map +1 -1
- package/build/_modules/discord-bot/_models/dibo-global-settings.interface.d.ts +88 -0
- package/build/_modules/discord-bot/_models/dibo-global-settings.interface.d.ts.map +1 -0
- package/build/_modules/discord-bot/_models/dibo-global-settings.interface.js +3 -0
- package/build/_modules/discord-bot/_models/dibo-global-settings.interface.js.map +1 -0
- package/build/_modules/discord-bot/_services/dibo-routines.control-service.d.ts +0 -1
- package/build/_modules/discord-bot/_services/dibo-routines.control-service.d.ts.map +1 -1
- package/build/_modules/discord-bot/_services/dibo-routines.control-service.js +0 -3
- package/build/_modules/discord-bot/_services/dibo-routines.control-service.js.map +1 -1
- package/build/_modules/discord-bot/index.d.ts +1 -1
- package/build/_modules/discord-bot/index.d.ts.map +1 -1
- package/build/_modules/discord-bot/index.js +1 -1
- package/build/_modules/discord-bot/index.js.map +1 -1
- package/build/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts +284 -58
- package/build/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts.map +1 -1
- package/build/_modules/open-ai/_services/oai-llm-chat.service-base.js +91 -104
- package/build/_modules/open-ai/_services/oai-llm-chat.service-base.js.map +1 -1
- package/build/_modules/open-ai/_services/oai-llm.service-base.d.ts +246 -53
- package/build/_modules/open-ai/_services/oai-llm.service-base.d.ts.map +1 -1
- package/build/_modules/open-ai/_services/oai-llm.service-base.js +86 -96
- package/build/_modules/open-ai/_services/oai-llm.service-base.js.map +1 -1
- package/package.json +1 -1
- package/src/_modules/discord-assistant/_services/dias-chunk.data-service.ts +26 -25
- package/src/_modules/discord-assistant/_services/dias-io.control-service.ts +6 -6
- package/src/_modules/discord-bot/_collections/dibo-global-settings.conts.ts +1 -1
- package/src/_modules/discord-bot/_services/dibo-routines.control-service.ts +2 -2
- package/src/_modules/discord-bot/index.ts +1 -1
- package/src/_modules/open-ai/_services/oai-llm-chat.service-base.ts +233 -249
- package/src/_modules/open-ai/_services/oai-llm.service-base.ts +189 -147
- /package/src/_modules/discord-bot/_models/{global-bot-log-settings.interface.ts → dibo-global-settings.interface.ts} +0 -0
|
@@ -28,31 +28,69 @@ export declare class DyNTS_OAI_LLM_ServiceBase {
|
|
|
28
28
|
* Uses the {@link DyNTS_OAI_LLM_Predefined_Requests.yesNo.request} to ask the question,
|
|
29
29
|
* and the {@link DyNTS_OAI_LLM_Predefined_Requests.yesNo.upperCaseYes} to check the answer
|
|
30
30
|
*/
|
|
31
|
-
askYesNoQuestion(
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
askYesNoQuestion(set: {
|
|
32
|
+
question: string;
|
|
33
|
+
issuer: string;
|
|
34
|
+
settings?: DyFM_GPTCall_Settings;
|
|
35
|
+
debugLog?: boolean;
|
|
36
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
37
|
+
replaceThisInLog?: string;
|
|
38
|
+
}): Promise<boolean>;
|
|
34
39
|
/** the exact same as {@link askYesNoQuestion} */
|
|
35
|
-
yesNoQuestion: (
|
|
40
|
+
yesNoQuestion: (set: {
|
|
41
|
+
question: string;
|
|
42
|
+
issuer: string;
|
|
43
|
+
settings?: DyFM_GPTCall_Settings;
|
|
44
|
+
debugLog?: boolean;
|
|
45
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
46
|
+
replaceThisInLog?: string;
|
|
47
|
+
}) => Promise<boolean>;
|
|
36
48
|
/**
|
|
37
49
|
* Asks the AI to answer a percentage question
|
|
38
50
|
*
|
|
39
51
|
* Uses the {@link DyNTS_OAI_LLM_Predefined_Requests.percentageOnly} to ask the question
|
|
40
52
|
*/
|
|
41
|
-
askPercentageQuestion(
|
|
42
|
-
|
|
43
|
-
|
|
53
|
+
askPercentageQuestion(set: {
|
|
54
|
+
question: string;
|
|
55
|
+
issuer: string;
|
|
56
|
+
settings?: DyFM_GPTCall_Settings;
|
|
57
|
+
debugLog?: boolean;
|
|
58
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
59
|
+
replaceThisInLog?: string;
|
|
60
|
+
}): Promise<number>;
|
|
44
61
|
/** the exact same as {@link askPercentageQuestion} */
|
|
45
|
-
percentageQuestion: (
|
|
62
|
+
percentageQuestion: (set: {
|
|
63
|
+
question: string;
|
|
64
|
+
issuer: string;
|
|
65
|
+
settings?: DyFM_GPTCall_Settings;
|
|
66
|
+
debugLog?: boolean;
|
|
67
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
68
|
+
replaceThisInLog?: string;
|
|
69
|
+
}) => Promise<number>;
|
|
46
70
|
/**
|
|
47
71
|
* Asks the AI to select one of the options from the list
|
|
48
72
|
*
|
|
49
73
|
* Uses the {@link DyNTS_OAI_LLM_Predefined_Requests.selectRequest} to ask the question
|
|
50
74
|
*/
|
|
51
|
-
askSelectQuestion(
|
|
52
|
-
|
|
53
|
-
|
|
75
|
+
askSelectQuestion(set: {
|
|
76
|
+
question: string;
|
|
77
|
+
selectFrom: string[];
|
|
78
|
+
issuer: string;
|
|
79
|
+
settings?: DyFM_GPTCall_Settings;
|
|
80
|
+
debugLog?: boolean;
|
|
81
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
82
|
+
replaceThisInLog?: string;
|
|
83
|
+
}): Promise<string>;
|
|
54
84
|
/** the exact same as {@link askSelectQuestion} */
|
|
55
|
-
selectQuestion: (
|
|
85
|
+
selectQuestion: (set: {
|
|
86
|
+
question: string;
|
|
87
|
+
selectFrom: string[];
|
|
88
|
+
issuer: string;
|
|
89
|
+
settings?: DyFM_GPTCall_Settings;
|
|
90
|
+
debugLog?: boolean;
|
|
91
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
92
|
+
replaceThisInLog?: string;
|
|
93
|
+
}) => Promise<string>;
|
|
56
94
|
/**
|
|
57
95
|
* Asks the AI to select one of the options from the list
|
|
58
96
|
* Similar to {@link askSelectQuestion},
|
|
@@ -60,13 +98,27 @@ export declare class DyNTS_OAI_LLM_ServiceBase {
|
|
|
60
98
|
*
|
|
61
99
|
* Uses the {@link DyNTS_OAI_LLM_Predefined_Requests.selectRequest} to ask the question
|
|
62
100
|
*/
|
|
63
|
-
requestSelect<T>(
|
|
64
|
-
|
|
65
|
-
|
|
101
|
+
requestSelect<T>(set: {
|
|
102
|
+
question: string;
|
|
103
|
+
selectFrom: T[];
|
|
104
|
+
issuer: string;
|
|
105
|
+
settings?: DyFM_GPTCall_Settings;
|
|
106
|
+
debugLog?: boolean;
|
|
107
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
108
|
+
replaceThisInLog?: string;
|
|
109
|
+
}): Promise<T | {
|
|
66
110
|
unparsableResult: string;
|
|
67
111
|
}>;
|
|
68
112
|
/** the exact same as {@link requestSelect} */
|
|
69
|
-
selectRequest: <T>(
|
|
113
|
+
selectRequest: <T>(set: {
|
|
114
|
+
question: string;
|
|
115
|
+
selectFrom: T[];
|
|
116
|
+
issuer: string;
|
|
117
|
+
settings?: DyFM_GPTCall_Settings;
|
|
118
|
+
debugLog?: boolean;
|
|
119
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
120
|
+
replaceThisInLog?: string;
|
|
121
|
+
}) => Promise<T | {
|
|
70
122
|
unparsableResult: string;
|
|
71
123
|
}>;
|
|
72
124
|
/**
|
|
@@ -74,11 +126,25 @@ export declare class DyNTS_OAI_LLM_ServiceBase {
|
|
|
74
126
|
*
|
|
75
127
|
* Uses the {@link DyNTS_OAI_LLM_Predefined_Requests.multiselect} to ask the question
|
|
76
128
|
*/
|
|
77
|
-
askMultipleSelectQuestionWithOptions(
|
|
78
|
-
|
|
79
|
-
|
|
129
|
+
askMultipleSelectQuestionWithOptions(set: {
|
|
130
|
+
question: string;
|
|
131
|
+
options: string[];
|
|
132
|
+
issuer: string;
|
|
133
|
+
settings?: DyFM_GPTCall_Settings;
|
|
134
|
+
debugLog?: boolean;
|
|
135
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
136
|
+
replaceThisInLog?: string;
|
|
137
|
+
}): Promise<string[]>;
|
|
80
138
|
/** the exact same as {@link askMultipleSelectQuestionWithOptions} */
|
|
81
|
-
multipleSelectQuestion: (
|
|
139
|
+
multipleSelectQuestion: (set: {
|
|
140
|
+
question: string;
|
|
141
|
+
options: string[];
|
|
142
|
+
issuer: string;
|
|
143
|
+
settings?: DyFM_GPTCall_Settings;
|
|
144
|
+
debugLog?: boolean;
|
|
145
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
146
|
+
replaceThisInLog?: string;
|
|
147
|
+
}) => Promise<string[]>;
|
|
82
148
|
/**
|
|
83
149
|
* Asks the AI to select one or more of the options from the list
|
|
84
150
|
* Similar to {@link askMultipleSelectQuestionWithOptions},
|
|
@@ -86,11 +152,25 @@ export declare class DyNTS_OAI_LLM_ServiceBase {
|
|
|
86
152
|
*
|
|
87
153
|
* Uses the {@link DyNTS_OAI_LLM_Predefined_Requests.multiselect} to ask the question
|
|
88
154
|
*/
|
|
89
|
-
requestMultipleSelect<T>(
|
|
90
|
-
|
|
91
|
-
|
|
155
|
+
requestMultipleSelect<T>(set: {
|
|
156
|
+
question: string;
|
|
157
|
+
options: T[];
|
|
158
|
+
issuer: string;
|
|
159
|
+
settings?: DyFM_GPTCall_Settings;
|
|
160
|
+
debugLog?: boolean;
|
|
161
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
162
|
+
replaceThisInLog?: string;
|
|
163
|
+
}): Promise<T[]>;
|
|
92
164
|
/** the exact same as {@link requestMultipleSelect} */
|
|
93
|
-
multipleSelectRequest: <T>(
|
|
165
|
+
multipleSelectRequest: <T>(set: {
|
|
166
|
+
question: string;
|
|
167
|
+
options: T[];
|
|
168
|
+
issuer: string;
|
|
169
|
+
settings?: DyFM_GPTCall_Settings;
|
|
170
|
+
debugLog?: boolean;
|
|
171
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
172
|
+
replaceThisInLog?: string;
|
|
173
|
+
}) => Promise<T[]>;
|
|
94
174
|
/**
|
|
95
175
|
* Asks the AI to answer a question that must result a JSON object
|
|
96
176
|
*
|
|
@@ -100,13 +180,25 @@ export declare class DyNTS_OAI_LLM_ServiceBase {
|
|
|
100
180
|
*
|
|
101
181
|
* (uses {@link DyFM_safeParseJSON})
|
|
102
182
|
*/
|
|
103
|
-
askJSONQuestion<T = any>(
|
|
104
|
-
|
|
105
|
-
|
|
183
|
+
askJSONQuestion<T = any>(set: {
|
|
184
|
+
question: string;
|
|
185
|
+
issuer: string;
|
|
186
|
+
settings?: DyFM_GPTCall_Settings;
|
|
187
|
+
debugLog?: boolean;
|
|
188
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
189
|
+
replaceThisInLog?: string;
|
|
190
|
+
}): Promise<T | {
|
|
106
191
|
unparsableResult: string;
|
|
107
192
|
}>;
|
|
108
193
|
/** the exact same as {@link askJSONQuestion} */
|
|
109
|
-
jsonQuestion: <T = any>(
|
|
194
|
+
jsonQuestion: <T = any>(set: {
|
|
195
|
+
question: string;
|
|
196
|
+
issuer: string;
|
|
197
|
+
settings?: DyFM_GPTCall_Settings;
|
|
198
|
+
debugLog?: boolean;
|
|
199
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
200
|
+
replaceThisInLog?: string;
|
|
201
|
+
}) => Promise<T | {
|
|
110
202
|
unparsableResult: string;
|
|
111
203
|
}>;
|
|
112
204
|
/**
|
|
@@ -118,13 +210,27 @@ export declare class DyNTS_OAI_LLM_ServiceBase {
|
|
|
118
210
|
*
|
|
119
211
|
* (uses {@link DyFM_safeParseJSON})
|
|
120
212
|
*/
|
|
121
|
-
askJSONQuestionWithKeysDescription<T = any>(
|
|
122
|
-
|
|
123
|
-
|
|
213
|
+
askJSONQuestionWithKeysDescription<T = any>(set: {
|
|
214
|
+
question: string;
|
|
215
|
+
keysDescription: string;
|
|
216
|
+
issuer: string;
|
|
217
|
+
settings?: DyFM_GPTCall_Settings;
|
|
218
|
+
debugLog?: boolean;
|
|
219
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
220
|
+
replaceThisInLog?: string;
|
|
221
|
+
}): Promise<T | {
|
|
124
222
|
unparsableResult: string;
|
|
125
223
|
}>;
|
|
126
224
|
/** the exact same as {@link askJSONQuestionWithKeysDescription} */
|
|
127
|
-
jsonQuestionWithKeysDescription: <T = any>(
|
|
225
|
+
jsonQuestionWithKeysDescription: <T = any>(set: {
|
|
226
|
+
question: string;
|
|
227
|
+
keysDescription: string;
|
|
228
|
+
issuer: string;
|
|
229
|
+
settings?: DyFM_GPTCall_Settings;
|
|
230
|
+
debugLog?: boolean;
|
|
231
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
232
|
+
replaceThisInLog?: string;
|
|
233
|
+
}) => Promise<T | {
|
|
128
234
|
unparsableResult: string;
|
|
129
235
|
}>;
|
|
130
236
|
/**
|
|
@@ -136,13 +242,27 @@ export declare class DyNTS_OAI_LLM_ServiceBase {
|
|
|
136
242
|
*
|
|
137
243
|
* (uses {@link DyFM_safeParseJSON})
|
|
138
244
|
*/
|
|
139
|
-
askJSONQuestionWithExactKeys<T = any>(
|
|
140
|
-
|
|
141
|
-
|
|
245
|
+
askJSONQuestionWithExactKeys<T = any>(set: {
|
|
246
|
+
question: string;
|
|
247
|
+
keys: string[];
|
|
248
|
+
issuer: string;
|
|
249
|
+
settings?: DyFM_GPTCall_Settings;
|
|
250
|
+
debugLog?: boolean;
|
|
251
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
252
|
+
replaceThisInLog?: string;
|
|
253
|
+
}): Promise<T | {
|
|
142
254
|
unparsableResult: string;
|
|
143
255
|
}>;
|
|
144
256
|
/** the exact same as {@link askJSONQuestionWithExactKeys} */
|
|
145
|
-
jsonQuestionWithExactKeys: <T = any>(
|
|
257
|
+
jsonQuestionWithExactKeys: <T = any>(set: {
|
|
258
|
+
question: string;
|
|
259
|
+
keys: string[];
|
|
260
|
+
issuer: string;
|
|
261
|
+
settings?: DyFM_GPTCall_Settings;
|
|
262
|
+
debugLog?: boolean;
|
|
263
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
264
|
+
replaceThisInLog?: string;
|
|
265
|
+
}) => Promise<T | {
|
|
146
266
|
unparsableResult: string;
|
|
147
267
|
}>;
|
|
148
268
|
/**
|
|
@@ -154,47 +274,116 @@ export declare class DyNTS_OAI_LLM_ServiceBase {
|
|
|
154
274
|
*
|
|
155
275
|
* (uses {@link DyFM_safeParseList})
|
|
156
276
|
*/
|
|
157
|
-
askListQuestion(
|
|
158
|
-
|
|
159
|
-
|
|
277
|
+
askListQuestion(set: {
|
|
278
|
+
question: string;
|
|
279
|
+
issuer: string;
|
|
280
|
+
settings?: DyFM_GPTCall_Settings;
|
|
281
|
+
debugLog?: boolean;
|
|
282
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
283
|
+
replaceThisInLog?: string;
|
|
284
|
+
}): Promise<string[]>;
|
|
160
285
|
/** the exact same as {@link askListQuestion} */
|
|
161
|
-
listQuestion: (
|
|
286
|
+
listQuestion: (set: {
|
|
287
|
+
question: string;
|
|
288
|
+
issuer: string;
|
|
289
|
+
settings?: DyFM_GPTCall_Settings;
|
|
290
|
+
debugLog?: boolean;
|
|
291
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
292
|
+
replaceThisInLog?: string;
|
|
293
|
+
}) => Promise<string[]>;
|
|
162
294
|
/** the exact same as {@link askListQuestion} */
|
|
163
|
-
listRequest: (
|
|
295
|
+
listRequest: (set: {
|
|
296
|
+
question: string;
|
|
297
|
+
issuer: string;
|
|
298
|
+
settings?: DyFM_GPTCall_Settings;
|
|
299
|
+
debugLog?: boolean;
|
|
300
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
301
|
+
replaceThisInLog?: string;
|
|
302
|
+
}) => Promise<string[]>;
|
|
164
303
|
/**
|
|
165
304
|
* Asks the AI to answer a question
|
|
166
305
|
*
|
|
167
306
|
* Uses the {@link resolveSimpleUserMessage}
|
|
168
307
|
*/
|
|
169
|
-
askQuestion(
|
|
170
|
-
|
|
171
|
-
|
|
308
|
+
askQuestion(set: {
|
|
309
|
+
question: string;
|
|
310
|
+
issuer: string;
|
|
311
|
+
settings?: DyFM_GPTCall_Settings;
|
|
312
|
+
debugLog?: boolean;
|
|
313
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
314
|
+
replaceThisInLog?: string;
|
|
315
|
+
}): Promise<string>;
|
|
172
316
|
/** the exact same as {@link askQuestion} */
|
|
173
|
-
answer: (
|
|
317
|
+
answer: (set: {
|
|
318
|
+
question: string;
|
|
319
|
+
issuer: string;
|
|
320
|
+
settings?: DyFM_GPTCall_Settings;
|
|
321
|
+
debugLog?: boolean;
|
|
322
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
323
|
+
replaceThisInLog?: string;
|
|
324
|
+
}) => Promise<string>;
|
|
174
325
|
/** the exact same as {@link askQuestion} */
|
|
175
|
-
getQuestionAnswer: (
|
|
326
|
+
getQuestionAnswer: (set: {
|
|
327
|
+
question: string;
|
|
328
|
+
issuer: string;
|
|
329
|
+
settings?: DyFM_GPTCall_Settings;
|
|
330
|
+
debugLog?: boolean;
|
|
331
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
332
|
+
replaceThisInLog?: string;
|
|
333
|
+
}) => Promise<string>;
|
|
176
334
|
/** the exact same as {@link askQuestion} */
|
|
177
|
-
simpleQuestion: (
|
|
335
|
+
simpleQuestion: (set: {
|
|
336
|
+
question: string;
|
|
337
|
+
issuer: string;
|
|
338
|
+
settings?: DyFM_GPTCall_Settings;
|
|
339
|
+
debugLog?: boolean;
|
|
340
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
341
|
+
replaceThisInLog?: string;
|
|
342
|
+
}) => Promise<string>;
|
|
178
343
|
/** the exact same as {@link askQuestion} */
|
|
179
|
-
askSimpleQuestion: (
|
|
344
|
+
askSimpleQuestion: (set: {
|
|
345
|
+
question: string;
|
|
346
|
+
issuer: string;
|
|
347
|
+
settings?: DyFM_GPTCall_Settings;
|
|
348
|
+
debugLog?: boolean;
|
|
349
|
+
/** this is used to readably replace too long contents to eg '...' in logs */
|
|
350
|
+
replaceThisInLog?: string;
|
|
351
|
+
}) => Promise<string>;
|
|
180
352
|
/**
|
|
181
353
|
* Resolves a simple user message and returns the answer as string
|
|
182
354
|
*
|
|
183
355
|
* Uses the {@link resolveMessage}
|
|
184
356
|
*/
|
|
185
|
-
resolveSimpleUserMessage(
|
|
357
|
+
resolveSimpleUserMessage(set: {
|
|
358
|
+
message: string;
|
|
359
|
+
issuer: string;
|
|
360
|
+
settings?: DyFM_GPTCall_Settings;
|
|
361
|
+
}): Promise<string>;
|
|
186
362
|
/** the exact same as {@link resolveSimpleUserMessage} */
|
|
187
|
-
simpleUserMessage: (
|
|
363
|
+
simpleUserMessage: (set: {
|
|
364
|
+
message: string;
|
|
365
|
+
issuer: string;
|
|
366
|
+
settings?: DyFM_GPTCall_Settings;
|
|
367
|
+
}) => Promise<string>;
|
|
188
368
|
/**
|
|
189
369
|
* Resolves a conversation
|
|
190
370
|
*
|
|
191
371
|
* Uses the {@link getMessageCreateInput}
|
|
192
372
|
*/
|
|
193
|
-
resolveMessage(
|
|
373
|
+
resolveMessage(set: {
|
|
374
|
+
conversation: DyNTS_OAI_GPT_Message[];
|
|
375
|
+
issuer: string;
|
|
376
|
+
settings?: DyFM_GPTCall_Settings;
|
|
377
|
+
getFullResponse?: boolean;
|
|
378
|
+
}): Promise<string | ChatCompletion>;
|
|
194
379
|
/**
|
|
195
380
|
* Logs the question if the debugLog is true
|
|
196
381
|
*/
|
|
197
|
-
protected logQuestion(
|
|
382
|
+
protected logQuestion(set: {
|
|
383
|
+
question: string;
|
|
384
|
+
replaceThisInLog?: string;
|
|
385
|
+
debugLog?: boolean;
|
|
386
|
+
}): void;
|
|
198
387
|
/**
|
|
199
388
|
* olvasható mondatszerű-listaszerű formába teszi a listaelemeket
|
|
200
389
|
* pl.: ['a', 'b', 'c'] -> '"a", "b" or "c"'
|
|
@@ -205,7 +394,11 @@ export declare class DyNTS_OAI_LLM_ServiceBase {
|
|
|
205
394
|
*
|
|
206
395
|
* Uses the {@link getDefaultSystemMessage}
|
|
207
396
|
*/
|
|
208
|
-
protected getMessageCreateInput(
|
|
397
|
+
protected getMessageCreateInput(set: {
|
|
398
|
+
conversation: DyNTS_OAI_GPT_Message[];
|
|
399
|
+
issuer: string;
|
|
400
|
+
settings?: DyFM_GPTCall_Settings;
|
|
401
|
+
}): ChatCompletionCreateParamsBase;
|
|
209
402
|
protected getDefaultSystemMessage(settings: DyFM_GPTCall_Settings): DyNTS_OAI_GPT_Message;
|
|
210
403
|
protected getDefaultErrorSettings(fnName: string, error: DyFM_AnyError, issuer: string): DyFM_Error_Settings;
|
|
211
404
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oai-llm.service-base.d.ts","sourceRoot":"","sources":["../../../../src/_modules/open-ai/_services/oai-llm.service-base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"oai-llm.service-base.d.ts","sourceRoot":"","sources":["../../../../src/_modules/open-ai/_services/oai-llm.service-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,+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