Mishig
commited on
Commit
•
5071731
1
Parent(s):
7a6b8fd
[Websearch] UI fix sources (#521)
Browse files
src/lib/server/websearch/runWebSearch.ts
CHANGED
@@ -92,14 +92,14 @@ export async function runWebSearch(
|
|
92 |
if (!usedSources.has(source.link)) {
|
93 |
usedSources.add(source.link);
|
94 |
webSearch.contextSources.push(source);
|
95 |
-
updatePad({
|
96 |
-
type: "webSearch",
|
97 |
-
messageType: "sources",
|
98 |
-
message: "sources",
|
99 |
-
sources: webSearch.contextSources,
|
100 |
-
});
|
101 |
}
|
102 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
} catch (searchError) {
|
104 |
if (searchError instanceof Error) {
|
105 |
appendUpdate(
|
|
|
92 |
if (!usedSources.has(source.link)) {
|
93 |
usedSources.add(source.link);
|
94 |
webSearch.contextSources.push(source);
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
}
|
97 |
+
updatePad({
|
98 |
+
type: "webSearch",
|
99 |
+
messageType: "sources",
|
100 |
+
message: "sources",
|
101 |
+
sources: webSearch.contextSources,
|
102 |
+
});
|
103 |
} catch (searchError) {
|
104 |
if (searchError instanceof Error) {
|
105 |
appendUpdate(
|