11wqe1 1 nedēļu atpakaļ
vecāks
revīzija
278c379ae0

+ 3 - 4
src/components/pages/components/exportDataDialog.vue

@@ -2617,10 +2617,10 @@ export default {
             if (
               data.choices &&
               data.choices.length &&
-              data.choices[0].messagea
+              data.choices[0].message
             ) {
               let content = data.choices[0].message.content;
-              this.AiAnlysisCon2.allFx = content.replaceAll("<br>", "");
+              this.AiAnalysisCon2.allFx = content.replaceAll("<br>", "");
             }
 
             this.loading = false;
@@ -3187,11 +3187,10 @@ export default {
         .then(response => {
           let data = response.data.FunctionResponse;
           console.log("data", data);
-          let md = new MarkdownIt();
+          // let md = new MarkdownIt(); 
 
           if (data.choices && data.choices.length && data.choices[0].message) {
             let content = data.choices[0].message.content;
-
             this.AiAnalysisCon2.allFx = content.replaceAll("<br>", "");
 
             this.AiAnalysisCon2Copy.allFx = this.AiAnalysisCon2.allFx;