Change user-message to user-prompt

This commit is contained in:
Weves
2024-09-16 21:32:51 -07:00
committed by Chris Weaver
parent 84272af5ac
commit 5b18409c89
3 changed files with 3 additions and 3 deletions

View File

@@ -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<

View File

@@ -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,

View File

@@ -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",