@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.
@@ -238,7 +238,7 @@ function CreatePhrase({
238
238
  const generateTranslations = async () => {
239
239
  try {
240
240
  let chatGptResponse = await makeChatGptApiRequest({
241
- model: "gpt-4o-mini",
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-mini",
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-mini",
149
+ model: "gpt-4o",
150
150
  promptKey: "generatePhrases",
151
151
  promptVariables: {
152
152
  topicGoal: values.topicGoal,
@@ -88,7 +88,7 @@ function GenerateQuestion({
88
88
  setIsMessageGenerating(true);
89
89
  setErrorMessage(null);
90
90
  const newQuestion = await makeChatGptApiRequest({
91
- model: "gpt-4o-mini",
91
+ model: "gpt-4o",
92
92
  promptKey: "generateAnswer",
93
93
  promptVariables: {
94
94
  script,
@@ -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-mini",
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-mini",
254
+ model: "gpt-4o",
255
255
  prompt: continuationPrompt
256
256
  });
257
257
  chatGptResponse = continuationResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nualang/nualang-ui-components",
3
- "version": "0.1.1264",
3
+ "version": "0.1.1265",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",