Remove Exclamation marks + comments (#3586)

* remove explanation marks + comments

* nit
This commit is contained in:
pablonyx
2025-01-04 10:39:16 -08:00
committed by GitHub
parent 6c018cb53f
commit 67d2c86250
9 changed files with 9 additions and 19 deletions

View File

@@ -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)));
}

View File

@@ -81,7 +81,6 @@ function ToolForm({
setDefinitionError(null);
}
} catch (error) {
console.log(error);
setMethodSpecs(null);
setDefinitionError("Invalid JSON format");
}

View File

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

View File

@@ -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");

View File

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

View File

@@ -102,7 +102,6 @@ export function CustomEmbeddingModelForm({
<Button
type="submit"
onClick={() => console.log(errors)}
disabled={isSubmitting}
className="w-64 mx-auto"
>

View File

@@ -29,7 +29,6 @@ export const buildDocumentSummaryDisplay = (
blurb: string
) => {
if (!matchHighlights || matchHighlights.length === 0) {
// console.log("no match highlights", matchHighlights);
return blurb;
}

View File

@@ -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);
}
}

View File

@@ -121,7 +121,6 @@ export const getAuthUrlSS = async (
return await getGoogleOAuthUrlSS(nextUrl);
}
case "cloud": {
console.log("LLpp");
return await getGoogleOAuthUrlSS(nextUrl);
}
case "saml": {