Skip to content

Commit

Permalink
Remove code-toolbar by using a simplified markdown renderer in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Dec 19, 2024
1 parent 7044dbb commit a047781
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 341 deletions.
4 changes: 1 addition & 3 deletions packages/jupyter-ai/src/components/chat-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { ExistingApiKeys } from './settings/existing-api-keys';
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
import { minifyUpdate } from './settings/minify';
import { useStackingAlert } from './mui-extras/stacking-alert';
import { RendermimeMarkdown } from './rendermime-markdown';
import { RendermimeMarkdown } from './settings/rendermime-markdown';
import { IJaiCompletionProvider } from '../tokens';
import { getProviderId, getModelLocalId } from '../utils';

Expand Down Expand Up @@ -375,7 +375,6 @@ export function ChatSettings(props: ChatSettingsProps): JSX.Element {
<RendermimeMarkdown
rmRegistry={props.rmRegistry}
markdownStr={chatHelpMarkdown}
complete
/>
)}
{lmGlobalId && (
Expand Down Expand Up @@ -491,7 +490,6 @@ export function ChatSettings(props: ChatSettingsProps): JSX.Element {
<RendermimeMarkdown
rmRegistry={props.rmRegistry}
markdownStr={completionHelpMarkdown}
complete
/>
)}
{clmGlobalId && (
Expand Down
197 changes: 0 additions & 197 deletions packages/jupyter-ai/src/components/code-blocks/code-toolbar.tsx

This file was deleted.

141 changes: 0 additions & 141 deletions packages/jupyter-ai/src/components/rendermime-markdown.tsx

This file was deleted.

Loading

0 comments on commit a047781

Please sign in to comment.