Skip to content

Commit f9ecead

Browse files
committed
k
1 parent bc087fc commit f9ecead

File tree

12 files changed

+35
-24
lines changed

12 files changed

+35
-24
lines changed

backend/onyx/llm/chat_llm.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,6 @@ def _completion(
409409
self._record_call(processed_prompt)
410410

411411
try:
412-
print(
413-
"model is",
414-
f"{self.config.model_provider}/{self.config.deployment_name or self.config.model_name}",
415-
)
416412
return litellm.completion(
417413
mock_response=MOCK_LLM_RESPONSE,
418414
# model choice

web/src/app/chat/input/AgenticToggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function AgenticToggle({
9494
Agent Search (BETA)
9595
</h3>
9696
</div>
97-
<p className="text-xs text-neutarl-600 dark:text-neutral-700 mb-2">
97+
<p className="text-xs text-neutral-600 dark:text-neutral-700 mb-2">
9898
Use AI agents to break down questions and run deep iterative
9999
research through promising pathways. Gives more thorough and
100100
accurate responses but takes slightly longer.

web/src/app/chat/message/AgenticMessage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export const AgenticMessage = ({
308308
const renderedAlternativeMarkdown = useMemo(() => {
309309
return (
310310
<ReactMarkdown
311-
className="prose max-w-full text-base"
311+
className="prose dark:prose-invert max-w-full text-base"
312312
components={{
313313
...markdownComponents,
314314
code: ({ node, className, children }: any) => {
@@ -335,7 +335,7 @@ export const AgenticMessage = ({
335335
const renderedMarkdown = useMemo(() => {
336336
return (
337337
<ReactMarkdown
338-
className="prose max-w-full text-base"
338+
className="prose dark:prose-invert max-w-full text-base"
339339
components={markdownComponents}
340340
remarkPlugins={[remarkGfm, remarkMath]}
341341
rehypePlugins={[[rehypePrism, { ignoreMissing: true }], rehypeKatex]}

web/src/app/chat/message/Messages.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ export const AIMessage = ({
383383
dangerouslySetInnerHTML={{ __html: htmlContent }}
384384
/>
385385
<ReactMarkdown
386-
className="prose max-w-full text-base"
386+
className="prose dark:prose-invert max-w-full text-base"
387387
components={markdownComponents}
388388
remarkPlugins={[remarkGfm, remarkMath]}
389389
rehypePlugins={[[rehypePrism, { ignoreMissing: true }], rehypeKatex]}

web/src/app/chat/message/SubQuestionsDisplay.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ const SubQuestionDisplay: React.FC<{
294294
const renderedMarkdown = useMemo(() => {
295295
return (
296296
<ReactMarkdown
297-
className="prose max-w-full text-base"
297+
className="prose dark:prose-invert max-w-full text-base"
298298
components={markdownComponents}
299299
remarkPlugins={[remarkGfm, remarkMath]}
300300
rehypePlugins={[rehypeKatex]}
@@ -340,7 +340,7 @@ const SubQuestionDisplay: React.FC<{
340340
{subQuestion?.question || temporaryDisplay?.question}
341341
</div>
342342
<ChevronDown
343-
className={`mt-0.5 text-text-darker transition-transform duration-500 ease-in-out ${
343+
className={`mt-0.5 flex-none text-text-darker transition-transform duration-500 ease-in-out ${
344344
toggled ? "" : "-rotate-90"
345345
}`}
346346
size={20}
@@ -632,9 +632,7 @@ const SubQuestionsDisplay: React.FC<SubQuestionsDisplayProps> = ({
632632
}
633633
`}</style>
634634
<div className="relative">
635-
{/* {subQuestions.map((subQuestion, index) => ( */}
636635
{memoizedSubQuestions.map((subQuestion, index) => (
637-
// {dynamicSubQuestions.map((subQuestion, index) => (
638636
<SubQuestionDisplay
639637
currentlyOpen={
640638
currentlyOpenQuestion?.level === subQuestion.level &&

web/src/app/ee/admin/standard-answer/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const StandardAnswersTableRow = ({
131131
/>,
132132
<ReactMarkdown
133133
key={`answer-${standardAnswer.id}`}
134-
className="prose"
134+
className="prose dark:prose-invert"
135135
remarkPlugins={[remarkGfm]}
136136
>
137137
{standardAnswer.answer}

web/src/app/globals.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ body {
562562
.prose :where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
563563
background-color: theme("colors.code-bg");
564564
font-size: theme("fontSize.code-sm");
565+
color: #fff;
565566
}
566567

567568
pre[class*="language-"],
@@ -660,11 +661,6 @@ ul > li > p {
660661
color: white;
661662
}
662663

663-
.prose.dark li,
664-
.prose.dark h1,
665-
.prose.dark h2,
666-
.prose.dark h3,
667-
.prose.dark h4,
668-
.prose.dark h5 {
664+
.prose.dark h4 {
669665
color: #e5e5e5;
670666
}

web/src/components/SearchResultIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function SearchResultIcon({ url }: { url: string }) {
5050
return <SourceIcon sourceType={ValidSources.Web} iconSize={18} />;
5151
}
5252
if (url.includes("docs.onyx.app")) {
53-
return <OnyxIcon size={18} />;
53+
return <OnyxIcon size={18} className="dark:text-[#fff] text-[#000]" />;
5454
}
5555

5656
return (

web/src/components/WebResultIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function WebResultIcon({
2323
return (
2424
<>
2525
{hostname == "docs.onyx.app" ? (
26-
<OnyxIcon size={size} />
26+
<OnyxIcon size={size} className="dark:text-[#fff] text-[#000]" />
2727
) : !error ? (
2828
<img
2929
className="my-0 rounded-full py-0"

web/src/components/admin/connectors/Field.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,10 @@ export const MarkdownFormField = ({
432432
</div>
433433
{isPreviewOpen ? (
434434
<div className="p-4 border-t border-background-300">
435-
<ReactMarkdown className="prose" remarkPlugins={[remarkGfm]}>
435+
<ReactMarkdown
436+
className="prose dark:prose-invert"
437+
remarkPlugins={[remarkGfm]}
438+
>
436439
{field.value}
437440
</ReactMarkdown>
438441
</div>

0 commit comments

Comments
 (0)