+
+ {yvals.map((yval, idx) => {
+ return (
+
+ );
+ })}
+
+
+ );
+});
+
+export { makeSysinfoViewModel, SysinfoView, SysinfoViewModel };
diff --git a/frontend/app/view/waveai/waveai.tsx b/frontend/app/view/waveai/waveai.tsx
index 0c170d645..db6bb67ef 100644
--- a/frontend/app/view/waveai/waveai.tsx
+++ b/frontend/app/view/waveai/waveai.tsx
@@ -81,12 +81,12 @@ export class WaveAiModel implements ViewModel {
.filter(([k]) => k.startsWith("ai@"))
.map(([k, v]) => {
const aiPresetKeys = Object.keys(v).filter((k) => k.startsWith("ai:"));
- console.log(aiPresetKeys);
- v["display:name"] =
+ const newV = { ...v };
+ newV["display:name"] =
aiPresetKeys.length == 1 && aiPresetKeys.includes("ai:*")
- ? `${v["display:name"] ?? "Default"} (${settings["ai:model"]})`
- : v["display:name"];
- return [k, v];
+ ? `${newV["display:name"] ?? "Default"} (${settings["ai:model"]})`
+ : newV["display:name"];
+ return [k, newV];
})
);
});
@@ -109,7 +109,7 @@ export class WaveAiModel implements ViewModel {
messages.pop();
set(this.messagesAtom, [...messages]);
});
- this.simulateAssistantResponseAtom = atom(null, async (get, set, userMessage: ChatMessageType) => {
+ this.simulateAssistantResponseAtom = atom(null, async (_, set, userMessage: ChatMessageType) => {
// unused at the moment. can replace the temp() function in the future
const typingMessage: ChatMessageType = {
id: crypto.randomUUID(),
@@ -213,7 +213,7 @@ export class WaveAiModel implements ViewModel {
}
async fetchAiData(): Promise