Skip to content

Commit 0b640f5

Browse files
committed
Updated endpoints
1 parent 6195e19 commit 0b640f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/message-footer/stop-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function StopButton(props: MessageFooterSectionProps): JSX.Element {
4343

4444
const onClick = () => {
4545
// Post request to the stop streaming handler.
46-
requestAPI('chats/stop_streaming', {
46+
requestAPI('api/jupyternaut/chats/stop_streaming', {
4747
method: 'POST',
4848
body: JSON.stringify({
4949
message_id: message.id

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
4242
activate: (app: JupyterFrontEnd) => {
4343
console.log('JupyterLab extension @jupyter-ai/jupyternaut is activated!');
4444

45-
requestAPI<any>('get-example')
45+
requestAPI<any>('api/jupyternaut/get-example')
4646
.then(data => {
4747
console.log(data);
4848
})

0 commit comments

Comments
 (0)