Remove unused persona marketplace and discover page files.
This commit is contained in:
@@ -19,7 +19,8 @@ export function createConversationController({
|
||||
updateJumpToLatest,
|
||||
updateSendState,
|
||||
loadSummary,
|
||||
updateHistoryControls = () => {}
|
||||
updateHistoryControls = () => {},
|
||||
getPersonalityId = () => "general-assistant"
|
||||
}) {
|
||||
let opening = false;
|
||||
function getChatById(id) { return state.chatSessions.find((chat) => chat.id === id); }
|
||||
@@ -203,7 +204,7 @@ export function createConversationController({
|
||||
detail: "Setting up a fresh chat so you can start sending messages."
|
||||
});
|
||||
try {
|
||||
const res = await post("/chats", {title: "New chat"}, {signal});
|
||||
const res = await post("/chats", {title: "New chat", personalityId: getPersonalityId()}, {signal});
|
||||
if (res.error || !res.chat) {
|
||||
const error = res.error || "Unable to create chat.";
|
||||
setNotice(error, "error");
|
||||
|
||||
Reference in New Issue
Block a user