mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-25 11:16:43 +02:00
Remove Exclamation marks + comments (#3586)
* remove explanation marks + comments * nit
This commit is contained in:
@@ -22,10 +22,6 @@ export const GET = async (request: NextRequest) => {
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
console.log(
|
||||
`Error in ${connector} callback:`,
|
||||
(await response.json()).detail
|
||||
);
|
||||
return NextResponse.redirect(new URL("/auth/error", getDomain(request)));
|
||||
}
|
||||
|
||||
|
@@ -81,7 +81,6 @@ function ToolForm({
|
||||
setDefinitionError(null);
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
setMethodSpecs(null);
|
||||
setDefinitionError("Invalid JSON format");
|
||||
}
|
||||
|
@@ -81,7 +81,6 @@ export const ChatFilters = forwardRef<HTMLDivElement, ChatFiltersProps>(
|
||||
const dedupedDocuments = removeDuplicateDocs(currentDocuments || []);
|
||||
|
||||
const tokenLimitReached = selectedDocumentTokens > maxTokens - 75;
|
||||
console.log("SELECTED MESSAGE is", selectedMessage);
|
||||
|
||||
const hasSelectedDocuments = selectedDocumentIds.length > 0;
|
||||
|
||||
|
@@ -90,7 +90,7 @@ export async function createChatSession(
|
||||
}
|
||||
);
|
||||
if (!createChatSessionResponse.ok) {
|
||||
console.log(
|
||||
console.error(
|
||||
`Failed to create chat session - ${createChatSessionResponse.status}`
|
||||
);
|
||||
throw Error("Failed to create chat session");
|
||||
|
@@ -546,16 +546,16 @@ export const AIMessage = ({
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<CustomTooltip showTick line content="Copy!">
|
||||
<CustomTooltip showTick line content="Copy">
|
||||
<CopyButton content={content.toString()} />
|
||||
</CustomTooltip>
|
||||
<CustomTooltip showTick line content="Good response!">
|
||||
<CustomTooltip showTick line content="Good response">
|
||||
<HoverableIcon
|
||||
icon={<LikeFeedback />}
|
||||
onClick={() => handleFeedback("like")}
|
||||
/>
|
||||
</CustomTooltip>
|
||||
<CustomTooltip showTick line content="Bad response!">
|
||||
<CustomTooltip showTick line content="Bad response">
|
||||
<HoverableIcon
|
||||
icon={<DislikeFeedback size={16} />}
|
||||
onClick={() => handleFeedback("dislike")}
|
||||
@@ -566,7 +566,7 @@ export const AIMessage = ({
|
||||
disabled={isRegenerateDropdownVisible}
|
||||
showTick
|
||||
line
|
||||
content="Regenerate!"
|
||||
content="Regenerate"
|
||||
>
|
||||
<RegenerateOption
|
||||
onDropdownVisibleChange={
|
||||
@@ -631,18 +631,18 @@ export const AIMessage = ({
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<CustomTooltip showTick line content="Copy!">
|
||||
<CustomTooltip showTick line content="Copy">
|
||||
<CopyButton content={content.toString()} />
|
||||
</CustomTooltip>
|
||||
|
||||
<CustomTooltip showTick line content="Good response!">
|
||||
<CustomTooltip showTick line content="Good response">
|
||||
<HoverableIcon
|
||||
icon={<LikeFeedback />}
|
||||
onClick={() => handleFeedback("like")}
|
||||
/>
|
||||
</CustomTooltip>
|
||||
|
||||
<CustomTooltip showTick line content="Bad response!">
|
||||
<CustomTooltip showTick line content="Bad response">
|
||||
<HoverableIcon
|
||||
icon={<DislikeFeedback size={16} />}
|
||||
onClick={() => handleFeedback("dislike")}
|
||||
@@ -653,7 +653,7 @@ export const AIMessage = ({
|
||||
disabled={isRegenerateDropdownVisible}
|
||||
showTick
|
||||
line
|
||||
content="Regenerate!"
|
||||
content="Regenerate"
|
||||
>
|
||||
<RegenerateOption
|
||||
selectedAssistant={currentPersona!}
|
||||
|
@@ -102,7 +102,6 @@ export function CustomEmbeddingModelForm({
|
||||
|
||||
<Button
|
||||
type="submit"
|
||||
onClick={() => console.log(errors)}
|
||||
disabled={isSubmitting}
|
||||
className="w-64 mx-auto"
|
||||
>
|
||||
|
@@ -29,7 +29,6 @@ export const buildDocumentSummaryDisplay = (
|
||||
blurb: string
|
||||
) => {
|
||||
if (!matchHighlights || matchHighlights.length === 0) {
|
||||
// console.log("no match highlights", matchHighlights);
|
||||
return blurb;
|
||||
}
|
||||
|
||||
|
@@ -130,7 +130,6 @@ export async function* handleSSEStream<T extends PacketType>(
|
||||
const data = JSON.parse(buffer) as T;
|
||||
yield data;
|
||||
} catch (error) {
|
||||
console.log("Problematic remaining buffer:", buffer);
|
||||
console.error("Error parsing remaining buffer:", error);
|
||||
}
|
||||
}
|
||||
|
@@ -121,7 +121,6 @@ export const getAuthUrlSS = async (
|
||||
return await getGoogleOAuthUrlSS(nextUrl);
|
||||
}
|
||||
case "cloud": {
|
||||
console.log("LLpp");
|
||||
return await getGoogleOAuthUrlSS(nextUrl);
|
||||
}
|
||||
case "saml": {
|
||||
|
Reference in New Issue
Block a user