You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
queryId: `${resultsCall1.sessionInfo.queryId}` // Fix typo here
80
+
},
81
+
session: `${resultsCall1.sessionInfo.name}`,
82
+
relatedQuestionsSpec: {
83
+
enable: true
84
+
},
85
+
answerGenerationSpec: {
86
+
ignoreAdversarialQuery: false,
87
+
ignoreNonAnswerSeekingQuery: false,
88
+
ignoreLowRelevantContent: true,
89
+
multimodalSpec: {},
90
+
includeCitations: true,
91
+
promptSpec: {
92
+
preamble: "You are a researcher with experience in computer science and the evolution of programming languages. Answers should be targeted for like-minded individuals. Technical details are good, especially when they are appropriately attributed."
93
+
},
94
+
modelSpec: {
95
+
modelVersion: "stable"
96
+
}
97
+
}
98
+
};
99
+
console.log("debug POST 2 body: ", data2);
100
+
fetch(url2, {
101
+
method: "POST",
102
+
headers: {
103
+
"Content-Type": "application/json",
104
+
"Authorization": `Bearer ${bearer}`
105
+
},
106
+
body: JSON.stringify(data2)
107
+
})
108
+
.then(response => response.json())
109
+
.then(data => {
110
+
console.log("debug info fetch 66", data);
111
+
const resultDiv2 = document.createElement('div');
112
+
resultDiv2.innerHTML = marked.parse(data.answer.answerText); // Use a Markdown parser like "marked" to render Markdown as HTML
0 commit comments