Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Oct 22, 2024
1 parent 028c023 commit 55785f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class CodestralHandler extends ChatModel {
const msg: IChatMessage = {
id: message.id,
body: message.body,
sender: {username: 'User'},
sender: { username: 'User' },
time: Date.now(),
type: 'msg'
};
Expand All @@ -50,7 +50,7 @@ export class CodestralHandler extends ChatModel {
const botMsg: IChatMessage = {
id: UUID.uuid4(),
body: botMessage.content as string,
sender: {username: 'Codestral'},
sender: { username: 'Codestral' },
time: Date.now(),
type: 'msg'
};
Expand Down
9 changes: 6 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ const chatPlugin: JupyterFrontEndPlugin<void> = {
function loadSetting(setting: ISettingRegistry.ISettings): void {
sendWithShiftEnter = setting.get('sendWithShiftEnter')
.composite as boolean;
enableCodeToolbar = setting.get('enableCodeToolbar')
.composite as boolean;
enableCodeToolbar = setting.get('enableCodeToolbar').composite as boolean;
chatHandler.config = { sendWithShiftEnter, enableCodeToolbar };
}

Expand All @@ -108,7 +107,11 @@ const chatPlugin: JupyterFrontEndPlugin<void> = {

let chatWidget: ReactWidget | null = null;
try {
chatWidget = buildChatSidebar({ model: chatHandler, themeManager, rmRegistry });
chatWidget = buildChatSidebar({
model: chatHandler,
themeManager,
rmRegistry
});
chatWidget.title.caption = 'Codestral Chat';
} catch (e) {
chatWidget = buildErrorWidget(themeManager);
Expand Down

0 comments on commit 55785f6

Please sign in to comment.