@nualang/nualang-ui-components 0.1.1264 → 0.1.1265
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/dist/Dialogs/CreatePhrase/CreatePhrase.js +1 -1
- package/dist/Dialogs/GenerateBot/GenerateBot.js +1 -1
- package/dist/Dialogs/GeneratePhrases/GeneratePhrases.js +1 -1
- package/dist/Dialogs/GenerateQuestion/GenerateQuestion.js +1 -1
- package/dist/Dialogs/GenerateRoleplay/GenerateRoleplay.js +2 -2
- package/package.json +1 -1
|
@@ -238,7 +238,7 @@ function CreatePhrase({
|
|
|
238
238
|
const generateTranslations = async () => {
|
|
239
239
|
try {
|
|
240
240
|
let chatGptResponse = await makeChatGptApiRequest({
|
|
241
|
-
model: "gpt-4o
|
|
241
|
+
model: "gpt-4o",
|
|
242
242
|
promptKey: "generateTranslations",
|
|
243
243
|
promptVariables: {
|
|
244
244
|
learnLang,
|
|
@@ -166,7 +166,7 @@ function GenerateBotDialog({
|
|
|
166
166
|
setIsBotGenerating(true);
|
|
167
167
|
setErrorMessage("");
|
|
168
168
|
let chatGptResponse = await makeChatGptApiRequest({
|
|
169
|
-
model: "gpt-4o
|
|
169
|
+
model: "gpt-4o",
|
|
170
170
|
promptKey: "generateBot",
|
|
171
171
|
promptVariables: {
|
|
172
172
|
botTopic: values.botTopic,
|
|
@@ -146,7 +146,7 @@ function GeneratePhrases({
|
|
|
146
146
|
setIsGenerating(true);
|
|
147
147
|
setErrorMessage(null);
|
|
148
148
|
const chatGptResponse = await makeChatGptApiRequest({
|
|
149
|
-
model: "gpt-4o
|
|
149
|
+
model: "gpt-4o",
|
|
150
150
|
promptKey: "generatePhrases",
|
|
151
151
|
promptVariables: {
|
|
152
152
|
topicGoal: values.topicGoal,
|
|
@@ -211,7 +211,7 @@ function GenerateRoleplayDialog({
|
|
|
211
211
|
response = (0, _jsonrepair.jsonrepair)(text);
|
|
212
212
|
} else {
|
|
213
213
|
let chatGptResponse = await makeChatGptApiRequest({
|
|
214
|
-
model: "gpt-4o
|
|
214
|
+
model: "gpt-4o",
|
|
215
215
|
promptKey: "generateRoleplay",
|
|
216
216
|
promptVariables: {
|
|
217
217
|
learnLang: learnLang,
|
|
@@ -251,7 +251,7 @@ function GenerateRoleplayDialog({
|
|
|
251
251
|
if (endsSuspiciously) {
|
|
252
252
|
const continuationPrompt = `Continue the following in the same JSON format:\n\n${JSON.stringify(parsed.result, null, 2)}`;
|
|
253
253
|
const continuationResponse = await makeChatGptApiRequest({
|
|
254
|
-
model: "gpt-4o
|
|
254
|
+
model: "gpt-4o",
|
|
255
255
|
prompt: continuationPrompt
|
|
256
256
|
});
|
|
257
257
|
chatGptResponse = continuationResponse;
|