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