Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@ai-sdk/mistral": "^3.0.24",
"@ai-sdk/openai": "^3.0.41",
"@ai-sdk/openai-compatible": "^2.0.35",
"@jupyter/chat": "^0.20.0",
"@jupyter/chat": "^0.21.1",
"@jupyterlab/application": "^4.0.0",
"@jupyterlab/apputils": "^4.5.6",
"@jupyterlab/cells": "^4.4.6",
Expand Down
9 changes: 5 additions & 4 deletions src/chat-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@ export class AIChatModel extends AbstractChatModel {
this._toolContexts.set(event.data.callId, context);

const toolCallMessage: IMessageContent = {
body: Private.buildToolCallHtml({
body: '',
mime_model: Private.buildToolCallHtml({
toolName: context.toolName,
input: context.input,
status: context.status,
Expand Down Expand Up @@ -532,7 +533,8 @@ export class AIChatModel extends AbstractChatModel {
);
for (const bundle of mimeBundles) {
this.messageAdded({
body: bundle,
body: '',
mime_model: bundle,
sender: this._getAIUser(),
id: UUID.uuid4(),
time: Date.now() / 1000,
Expand Down Expand Up @@ -630,7 +632,7 @@ export class AIChatModel extends AbstractChatModel {

context.status = status;
existingMessage.update({
body: Private.buildToolCallHtml({
mime_model: Private.buildToolCallHtml({
toolName: context.toolName,
input: context.input,
status: context.status,
Expand Down Expand Up @@ -927,7 +929,6 @@ export class AIChatModel extends AbstractChatModel {
private _agentManager: IAgentManager;
private _currentStreamingMessage: IMessage | null = null;
private _nameChanged = new Signal<AIChatModel, string>(this);
private _trans: TranslationBundle;
}

namespace Private {
Expand Down
107 changes: 54 additions & 53 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2246,9 +2246,9 @@ __metadata:
languageName: node
linkType: hard

"@jupyter/chat@npm:^0.20.0":
version: 0.20.0
resolution: "@jupyter/chat@npm:0.20.0"
"@jupyter/chat@npm:^0.21.1":
version: 0.21.1
resolution: "@jupyter/chat@npm:0.21.1"
dependencies:
"@emotion/react": ^11.10.5
"@emotion/styled": ^11.10.5
Expand All @@ -2263,6 +2263,7 @@ __metadata:
"@jupyterlab/fileeditor": ^4.2.0
"@jupyterlab/notebook": ^4.2.0
"@jupyterlab/rendermime": ^4.2.0
"@jupyterlab/translation": ^4.2.0
"@jupyterlab/ui-components": ^4.2.0
"@lumino/algorithm": ^2.0.0
"@lumino/commands": ^2.0.0
Expand All @@ -2276,7 +2277,7 @@ __metadata:
clsx: ^2.1.0
react: ^18.2.0
react-dom: ^18.2.0
checksum: 27ec154d9117a04a16f5d8a272fca995b0802059ef467259400382584e25dc4b1c0531865e8c42374d473e5f79050d96bd6840c65cda3d18893f34c886ddbdcd
checksum: f96b96ccbb44c0ee2b3539f4b4d08da8f63bc4d53d742781640948c66a7e19201303a7faae30937533cc6c07465e5cb280b1ac1bceb1345cc8a730a4704ee84f
languageName: node
linkType: hard

Expand Down Expand Up @@ -2581,17 +2582,17 @@ __metadata:
languageName: node
linkType: hard

"@jupyterlab/coreutils@npm:^6.0.0, @jupyterlab/coreutils@npm:^6.4.6, @jupyterlab/coreutils@npm:^6.4.7, @jupyterlab/coreutils@npm:^6.5.3":
version: 6.5.3
resolution: "@jupyterlab/coreutils@npm:6.5.3"
"@jupyterlab/coreutils@npm:^6.0.0, @jupyterlab/coreutils@npm:^6.4.6, @jupyterlab/coreutils@npm:^6.4.7, @jupyterlab/coreutils@npm:^6.5.3, @jupyterlab/coreutils@npm:^6.5.6":
version: 6.5.6
resolution: "@jupyterlab/coreutils@npm:6.5.6"
dependencies:
"@lumino/coreutils": ^2.2.2
"@lumino/disposable": ^2.1.5
"@lumino/signaling": ^2.1.5
minimist: ~1.2.0
path-browserify: ^1.0.0
url-parse: ~1.5.4
checksum: 9859e9c4a00d5b65b71099afeccb92f590ae1c4943e4537f434f874dac984ef854319d6ba06c42640e54e53bdda4a8c6d23ba91152c2baa6d507dce17dd242cb
checksum: e693f47d86dcff9762340d8a7df504b9b258a03785243b8aac8606321216efac9c965bbf4197abbcb1f175dade44d0f53f0a9ff70f14a16e5243fae3a5ef16cf
languageName: node
linkType: hard

Expand Down Expand Up @@ -2743,12 +2744,12 @@ __metadata:
languageName: node
linkType: hard

"@jupyterlab/nbformat@npm:^3.0.0 || ^4.0.0-alpha.21 || ^4.0.0, @jupyterlab/nbformat@npm:^4.4.7, @jupyterlab/nbformat@npm:^4.5.3":
version: 4.5.3
resolution: "@jupyterlab/nbformat@npm:4.5.3"
"@jupyterlab/nbformat@npm:^3.0.0 || ^4.0.0-alpha.21 || ^4.0.0, @jupyterlab/nbformat@npm:^4.4.7, @jupyterlab/nbformat@npm:^4.5.3, @jupyterlab/nbformat@npm:^4.5.6":
version: 4.5.6
resolution: "@jupyterlab/nbformat@npm:4.5.6"
dependencies:
"@lumino/coreutils": ^2.2.2
checksum: 315d259e0e465e98631fc396e0468583b6979b8e246d5fc19995778f56fe3644588e68e7c8738b27f16dd1342cfdf3410563daeb7f909cec0b058f2116567475
checksum: 136f00cf215a7a4a9061d8874ac35191f5f65c62cdb7687578d77772d8d6fb866905710511986ef533a383826d1cc2807cfc58e5f7076b853703cae15b3c8bc8
languageName: node
linkType: hard

Expand Down Expand Up @@ -2825,13 +2826,13 @@ __metadata:
languageName: node
linkType: hard

"@jupyterlab/rendermime-interfaces@npm:^3.12.7, @jupyterlab/rendermime-interfaces@npm:^3.13.3":
version: 3.13.3
resolution: "@jupyterlab/rendermime-interfaces@npm:3.13.3"
"@jupyterlab/rendermime-interfaces@npm:^3.12.7, @jupyterlab/rendermime-interfaces@npm:^3.13.3, @jupyterlab/rendermime-interfaces@npm:^3.13.6":
version: 3.13.6
resolution: "@jupyterlab/rendermime-interfaces@npm:3.13.6"
dependencies:
"@lumino/coreutils": ^1.11.0 || ^2.2.2
"@lumino/widgets": ^1.37.2 || ^2.7.3
checksum: dc8ebd5a8226881df85f41d9c1c5524e0ccd8101ef860d50b013dd4f3f075152f33b300dd538800ca930189a60b80cc9c24a0dace9831c2fc6eef6eda008c77e
"@lumino/widgets": ^1.37.2 || ^2.7.5
checksum: 23bbf8f18712d6f14444ef20ed851fa8d787f4cdfaf4e43348365a3d6042ff1fe43e738b99a0e6a921d8205f7b97cc8d4016eb0863950266e105699fcd13a8d6
languageName: node
linkType: hard

Expand All @@ -2855,31 +2856,31 @@ __metadata:
languageName: node
linkType: hard

"@jupyterlab/services@npm:^7.4.6, @jupyterlab/services@npm:^7.4.7, @jupyterlab/services@npm:^7.5.3":
version: 7.5.3
resolution: "@jupyterlab/services@npm:7.5.3"
"@jupyterlab/services@npm:^7.4.6, @jupyterlab/services@npm:^7.4.7, @jupyterlab/services@npm:^7.5.3, @jupyterlab/services@npm:^7.5.6":
version: 7.5.6
resolution: "@jupyterlab/services@npm:7.5.6"
dependencies:
"@jupyter/ydoc": ^3.1.0
"@jupyterlab/coreutils": ^6.5.3
"@jupyterlab/nbformat": ^4.5.3
"@jupyterlab/settingregistry": ^4.5.3
"@jupyterlab/statedb": ^4.5.3
"@jupyterlab/coreutils": ^6.5.6
"@jupyterlab/nbformat": ^4.5.6
"@jupyterlab/settingregistry": ^4.5.6
"@jupyterlab/statedb": ^4.5.6
"@lumino/coreutils": ^2.2.2
"@lumino/disposable": ^2.1.5
"@lumino/polling": ^2.1.5
"@lumino/properties": ^2.0.4
"@lumino/signaling": ^2.1.5
ws: ^8.11.0
checksum: 7ab0c9419f6768c129482c21141d9d970e63fdc7e86f35b0c980197666a54397e9e3549b56986bf35c8914e9b59b6b3ad81a8fcd91ecc3ba1a198a633b090d4e
checksum: c5b0d9ba7f2ccc245eb7bbf6f32c174116ff70f7d173168b66649b6d35cbca118e2e1be6fa7f305979eac3c8478dc228990b1c5537aec96b51cd637b2ab792a3
languageName: node
linkType: hard

"@jupyterlab/settingregistry@npm:^4.0.0, @jupyterlab/settingregistry@npm:^4.4.7, @jupyterlab/settingregistry@npm:^4.5.3":
version: 4.5.3
resolution: "@jupyterlab/settingregistry@npm:4.5.3"
"@jupyterlab/settingregistry@npm:^4.0.0, @jupyterlab/settingregistry@npm:^4.4.7, @jupyterlab/settingregistry@npm:^4.5.3, @jupyterlab/settingregistry@npm:^4.5.6":
version: 4.5.6
resolution: "@jupyterlab/settingregistry@npm:4.5.6"
dependencies:
"@jupyterlab/nbformat": ^4.5.3
"@jupyterlab/statedb": ^4.5.3
"@jupyterlab/nbformat": ^4.5.6
"@jupyterlab/statedb": ^4.5.6
"@lumino/commands": ^2.3.3
"@lumino/coreutils": ^2.2.2
"@lumino/disposable": ^2.1.5
Expand All @@ -2889,20 +2890,20 @@ __metadata:
json5: ^2.2.3
peerDependencies:
react: ">=16"
checksum: 8f6dd758de6e20432a90ca53bcad636685dc3930f73ed3069706b6bd676e050cd8453008dc47c53fbcd3b74bfc2e07adbed5ef8ca4649737c57e898dbd422af6
checksum: fd8490e0a2e7a8359fc6c87e1988bda6ce168be202fba3888b77a9bbd4b0967a2486d39c73464f2295a17615cc715ab48733e6fa4d52b4565bb003e3d586c99b
languageName: node
linkType: hard

"@jupyterlab/statedb@npm:^4.0.0, @jupyterlab/statedb@npm:^4.4.7, @jupyterlab/statedb@npm:^4.5.3":
version: 4.5.3
resolution: "@jupyterlab/statedb@npm:4.5.3"
"@jupyterlab/statedb@npm:^4.0.0, @jupyterlab/statedb@npm:^4.4.7, @jupyterlab/statedb@npm:^4.5.3, @jupyterlab/statedb@npm:^4.5.6":
version: 4.5.6
resolution: "@jupyterlab/statedb@npm:4.5.6"
dependencies:
"@lumino/commands": ^2.3.3
"@lumino/coreutils": ^2.2.2
"@lumino/disposable": ^2.1.5
"@lumino/properties": ^2.0.4
"@lumino/signaling": ^2.1.5
checksum: ebcd0c533c39b4a8bea07e1271e2c1dce1c5867b9e37b662554707848c648a0b839e50629af8ba11192928ad5c19f8931278927bed1853d1c03c04a925653747
checksum: 5a9a237ed1cd215ddb672bc080da5966320716b7ea6a018eeca2c5cc3689b0b9709843e1ef2452657976b751ce00cf64c82375f3dc796d844f94dcf856c50884
languageName: node
linkType: hard

Expand Down Expand Up @@ -2981,16 +2982,16 @@ __metadata:
languageName: node
linkType: hard

"@jupyterlab/translation@npm:^4.4.7, @jupyterlab/translation@npm:^4.5.3":
version: 4.5.3
resolution: "@jupyterlab/translation@npm:4.5.3"
"@jupyterlab/translation@npm:^4.2.0, @jupyterlab/translation@npm:^4.4.7, @jupyterlab/translation@npm:^4.5.3":
version: 4.5.6
resolution: "@jupyterlab/translation@npm:4.5.6"
dependencies:
"@jupyterlab/coreutils": ^6.5.3
"@jupyterlab/rendermime-interfaces": ^3.13.3
"@jupyterlab/services": ^7.5.3
"@jupyterlab/statedb": ^4.5.3
"@jupyterlab/coreutils": ^6.5.6
"@jupyterlab/rendermime-interfaces": ^3.13.6
"@jupyterlab/services": ^7.5.6
"@jupyterlab/statedb": ^4.5.6
"@lumino/coreutils": ^2.2.2
checksum: b1f50361ee56b28b0500fc1deffb48cd75d1ad75f9022cb873f100e5fa20c863ce96c0d2c2ea49658f533789cd2dd6283e0d03e9b455bb2f8641b0fb9f603180
checksum: 05db816acc6b908a02c80ff67c2239a54f1b43260b57ffc0038224ec5d082ed6167d27d4e3cccfd871f7408c10e6c36c8ab9fcd419b69e7a9ded4307bf3e16ad
languageName: node
linkType: hard

Expand Down Expand Up @@ -3035,7 +3036,7 @@ __metadata:
"@ai-sdk/mistral": ^3.0.24
"@ai-sdk/openai": ^3.0.41
"@ai-sdk/openai-compatible": ^2.0.35
"@jupyter/chat": ^0.20.0
"@jupyter/chat": ^0.21.1
"@jupyterlab/application": ^4.0.0
"@jupyterlab/apputils": ^4.5.6
"@jupyterlab/builder": ^4.0.0
Expand Down Expand Up @@ -3314,13 +3315,13 @@ __metadata:
languageName: node
linkType: hard

"@lumino/dragdrop@npm:^2.1.6, @lumino/dragdrop@npm:^2.1.7":
version: 2.1.7
resolution: "@lumino/dragdrop@npm:2.1.7"
"@lumino/dragdrop@npm:^2.1.6, @lumino/dragdrop@npm:^2.1.7, @lumino/dragdrop@npm:^2.1.8":
version: 2.1.8
resolution: "@lumino/dragdrop@npm:2.1.8"
dependencies:
"@lumino/coreutils": ^2.2.2
"@lumino/disposable": ^2.1.5
checksum: 92365f45bf3876db2575e6c46a8951f5521fa889146a760386fd189927ae14b7fb00a0e3390f78cfca2703d9d57854e3b17fb4b457a8f288df268f3a36158858
checksum: 2e772456ce911c6c4941df4213eebeb64265f7ee36f83332ac1abb01bbc1b88b84978616dbc58cf7e8cb053db2018090ad68221bc343acaf1b6dcbbe355e25ab
languageName: node
linkType: hard

Expand Down Expand Up @@ -3378,22 +3379,22 @@ __metadata:
languageName: node
linkType: hard

"@lumino/widgets@npm:^1.37.2 || ^2.7.3, @lumino/widgets@npm:^2.0.0, @lumino/widgets@npm:^2.7.1, @lumino/widgets@npm:^2.7.3":
version: 2.7.3
resolution: "@lumino/widgets@npm:2.7.3"
"@lumino/widgets@npm:^1.37.2 || ^2.7.5, @lumino/widgets@npm:^2.0.0, @lumino/widgets@npm:^2.7.1, @lumino/widgets@npm:^2.7.3":
version: 2.7.5
resolution: "@lumino/widgets@npm:2.7.5"
dependencies:
"@lumino/algorithm": ^2.0.4
"@lumino/commands": ^2.3.3
"@lumino/coreutils": ^2.2.2
"@lumino/disposable": ^2.1.5
"@lumino/domutils": ^2.0.4
"@lumino/dragdrop": ^2.1.7
"@lumino/dragdrop": ^2.1.8
"@lumino/keyboard": ^2.0.4
"@lumino/messaging": ^2.0.4
"@lumino/properties": ^2.0.4
"@lumino/signaling": ^2.1.5
"@lumino/virtualdom": ^2.0.4
checksum: 7e4553142b2aa082cb5aa55dfcdfc95985385b5712c9503bb488b33297b42cfff772c530c584b412fa8123403f6cb0b90c10c0348dfcd9b6795337f5bf52c6bc
checksum: 0d5ee9a04bca0fe8f48f4f8b486128acc6c67586c5c65c75f7a8c78bfef931b9bdd49ab741883427e0f2375669a5c1821e90a662c81c63b6cc9e8f5c555e2f14
languageName: node
linkType: hard

Expand Down
Loading