default state profile null
This commit is contained in:
parent
ebaa38c08e
commit
96082c8c29
1 changed files with 3 additions and 16 deletions
|
|
@ -22,6 +22,7 @@ import {
|
|||
ToolCallState,
|
||||
} from "core";
|
||||
import { ProfileDescription } from "core/config/ConfigHandler";
|
||||
import { OrganizationDescription } from "core/config/ProfileLifecycleManager";
|
||||
import { NEW_SESSION_TITLE } from "core/util/constants";
|
||||
import { incrementalParseJson } from "core/util/incrementalParseJson";
|
||||
import { renderChatMessage } from "core/util/messageContent";
|
||||
|
|
@ -30,7 +31,6 @@ import { v4 as uuidv4 } from "uuid";
|
|||
import { RootState } from "../store";
|
||||
import { streamResponseThunk } from "../thunks/streamResponse";
|
||||
import { findCurrentToolCall } from "../util";
|
||||
import { OrganizationDescription } from "core/config/ProfileLifecycleManager";
|
||||
|
||||
// We need this to handle reorderings (e.g. a mid-array deletion) of the messages array.
|
||||
// The proper fix is adding a UUID to all chat messages, but this is the temp workaround.
|
||||
|
|
@ -88,21 +88,8 @@ const initialState: SessionState = {
|
|||
isStreaming: false,
|
||||
title: NEW_SESSION_TITLE,
|
||||
id: uuidv4(),
|
||||
selectedProfileId: "local",
|
||||
availableProfiles: [
|
||||
{
|
||||
id: "local",
|
||||
title: "Local",
|
||||
errors: undefined,
|
||||
profileType: "local",
|
||||
fullSlug: {
|
||||
ownerSlug: "",
|
||||
packageSlug: "",
|
||||
versionSlug: "",
|
||||
},
|
||||
iconUrl: "",
|
||||
},
|
||||
],
|
||||
selectedProfileId: null,
|
||||
availableProfiles: [],
|
||||
organizations: [],
|
||||
selectedOrganizationId: "",
|
||||
curCheckpointIndex: 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue