mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-10 12:59:59 +02:00
Very minor polish (#2445)
* fix minor polish * cleaner chat flow * remove keys * slight robustification to copying
This commit is contained in:
parent
ee278522ef
commit
a50c2e30ec
@ -183,7 +183,7 @@ def update_current_search_settings(
|
||||
|
||||
# Whenever we update the current search settings, we should ensure that the local reranking model is warmed up.
|
||||
if (
|
||||
current_settings.provider_type is None
|
||||
search_settings.rerank_provider_type is None
|
||||
and search_settings.rerank_model_name is not None
|
||||
and current_settings.rerank_model_name != search_settings.rerank_model_name
|
||||
):
|
||||
|
@ -45,6 +45,7 @@ export function ChatBanner() {
|
||||
shadow-sm
|
||||
rounded
|
||||
border-l-8 border-l-400
|
||||
bg-background
|
||||
border-r-4 border-r-200
|
||||
border-border
|
||||
border
|
||||
|
@ -1124,9 +1124,9 @@ export function ChatPage({
|
||||
|
||||
await delay(50);
|
||||
while (!stack.isComplete || !stack.isEmpty()) {
|
||||
await delay(2);
|
||||
await delay(0.5);
|
||||
|
||||
if (!stack.isEmpty()) {
|
||||
if (!stack.isEmpty() && !controller.signal.aborted) {
|
||||
const packet = stack.nextPacket();
|
||||
if (!packet) {
|
||||
continue;
|
||||
|
@ -698,7 +698,8 @@ export async function useScrollonStream({
|
||||
) {
|
||||
// catch up if necessary!
|
||||
const scrollAmount = scrollDist.current + 10000;
|
||||
if (scrollDist.current > 140) {
|
||||
if (scrollDist.current > 300) {
|
||||
// if (scrollDist.current > 140) {
|
||||
endDivRef.current.scrollIntoView();
|
||||
} else {
|
||||
blockActionRef.current = true;
|
||||
|
@ -383,17 +383,13 @@ export const AIMessage = ({
|
||||
// TODO: fix the fact that you have to double click to follow link
|
||||
// for the first link
|
||||
return (
|
||||
<Citation
|
||||
link={rest?.href}
|
||||
key={node?.position?.start?.offset}
|
||||
>
|
||||
<Citation link={rest?.href}>
|
||||
{rest.children}
|
||||
</Citation>
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<a
|
||||
key={node?.position?.start?.offset}
|
||||
onMouseDown={() =>
|
||||
rest.href
|
||||
? window.open(rest.href, "_blank")
|
||||
@ -570,8 +566,8 @@ export const AIMessage = ({
|
||||
<div
|
||||
ref={hoverElementRef}
|
||||
className={`
|
||||
|
||||
absolute -bottom-5
|
||||
z-20
|
||||
invisible ${(isHovering || isRegenerateHovered || settings?.isMobile) && "!visible"}
|
||||
opacity-0 ${(isHovering || isRegenerateHovered || settings?.isMobile) && "!opacity-100"}
|
||||
translate-y-2 ${(isHovering || settings?.isMobile) && "!translate-y-0"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user