mirror of
https://github.com/wassname/stampy-chat.git
synced 2026-09-10 12:40:44 +08:00
implement changes from @Thomas-Lemoine review
This commit is contained in:
+1
-1
@@ -116,7 +116,7 @@ def construct_prompt(query: str, mode: str, history: List[Dict[str, str]], conte
|
||||
"using the format: [a], [b], etc. If you use multiple sources to make a claim " \
|
||||
"cite all of them. For example: \"AGI is concerning [c, d, e].\"\n\n"
|
||||
|
||||
if mode == "crux":
|
||||
if mode == "concise":
|
||||
question_prompt += "Answer very concisely, getting to the crux of the matter in as " \
|
||||
"few words as possible. Limit your answer to 1-2 sentences.\n\n"
|
||||
|
||||
|
||||
@@ -236,7 +236,7 @@ type State = {
|
||||
response: AssistantEntry;
|
||||
};
|
||||
|
||||
type Mode = "rookie" | "crux" | "default";
|
||||
type Mode = "rookie" | "concise" | "default";
|
||||
|
||||
|
||||
// smooth-scroll to the bottom of the window if we're already less than 30% a screen away
|
||||
@@ -491,11 +491,11 @@ const Home: NextPage = () => {
|
||||
</button>
|
||||
//
|
||||
<button className={
|
||||
"border border-gray-300 px-1 " + (mode[1] && mode[0] === "crux" ? "bg-gray-200" : "")
|
||||
} onClick={() => { setMode(["crux", true]); }}
|
||||
"border border-gray-300 px-1 " + (mode[1] && mode[0] === "concise" ? "bg-gray-200" : "")
|
||||
} onClick={() => { setMode(["concise", true]); }}
|
||||
title="Quick and to the point. Followup questions may need to be
|
||||
asked to get the full picture of what's going on.">
|
||||
crux
|
||||
concise
|
||||
</button>
|
||||
//
|
||||
<button className={
|
||||
|
||||
Reference in New Issue
Block a user