add rag-view frontend

This commit is contained in:
2026-02-27 20:50:03 +01:00
parent f20c422f01
commit 65ade24e1b
80 changed files with 9923 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
import fetchGetChat from "../../fetch-async/fetchGetChat";
export const buildGetChatExtraReducers = (builder) => {
builder
.addCase(fetchGetChat.fulfilled, (state, action) => {
const chat = action.payload;
if (chat) {
state.messages = chat.history || [];
}
})
.addCase(fetchGetChat.rejected, (_state, action) => {
console.log("fetchGetChat error:", action.payload?.status);
});
};