mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-25 20:33:09 +02:00
Change user-message to user-prompt
This commit is contained in:
@@ -426,7 +426,7 @@ export function ChatPage({
|
|||||||
}, [existingChatSessionId]);
|
}, [existingChatSessionId]);
|
||||||
|
|
||||||
const [message, setMessage] = useState(
|
const [message, setMessage] = useState(
|
||||||
searchParams.get(SEARCH_PARAM_NAMES.USER_MESSAGE) || ""
|
searchParams.get(SEARCH_PARAM_NAMES.USER_PROMPT) || ""
|
||||||
);
|
);
|
||||||
|
|
||||||
const [completeMessageDetail, setCompleteMessageDetail] = useState<
|
const [completeMessageDetail, setCompleteMessageDetail] = useState<
|
||||||
|
@@ -582,7 +582,7 @@ export function personaIncludesImage(selectedPersona: Persona) {
|
|||||||
|
|
||||||
const PARAMS_TO_SKIP = [
|
const PARAMS_TO_SKIP = [
|
||||||
SEARCH_PARAM_NAMES.SUBMIT_ON_LOAD,
|
SEARCH_PARAM_NAMES.SUBMIT_ON_LOAD,
|
||||||
SEARCH_PARAM_NAMES.USER_MESSAGE,
|
SEARCH_PARAM_NAMES.USER_PROMPT,
|
||||||
SEARCH_PARAM_NAMES.TITLE,
|
SEARCH_PARAM_NAMES.TITLE,
|
||||||
// only use these if explicitly passed in
|
// only use these if explicitly passed in
|
||||||
SEARCH_PARAM_NAMES.CHAT_ID,
|
SEARCH_PARAM_NAMES.CHAT_ID,
|
||||||
|
@@ -10,7 +10,7 @@ export const SEARCH_PARAM_NAMES = {
|
|||||||
MODEL_VERSION: "model-version",
|
MODEL_VERSION: "model-version",
|
||||||
SYSTEM_PROMPT: "system-prompt",
|
SYSTEM_PROMPT: "system-prompt",
|
||||||
// user message
|
// user message
|
||||||
USER_MESSAGE: "user-message",
|
USER_PROMPT: "user-prompt",
|
||||||
SUBMIT_ON_LOAD: "submit-on-load",
|
SUBMIT_ON_LOAD: "submit-on-load",
|
||||||
// chat title
|
// chat title
|
||||||
TITLE: "title",
|
TITLE: "title",
|
||||||
|
Reference in New Issue
Block a user