jupyter-chat-example 0.25.0-alpha.2 → 0.25.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -1
- package/package.json +2 -2
- package/src/index.ts +2 -1
package/lib/index.js
CHANGED
|
@@ -31,7 +31,8 @@ class ChatContext extends AbstractChatContext {
|
|
|
31
31
|
class MyChatModel extends AbstractChatModel {
|
|
32
32
|
constructor(options) {
|
|
33
33
|
super(options);
|
|
34
|
-
|
|
34
|
+
// This example model has no backend; give it a stable client-side id.
|
|
35
|
+
this.setReady(UUID.uuid4());
|
|
35
36
|
}
|
|
36
37
|
sendMessage(newMessage) {
|
|
37
38
|
if (!newMessage.body) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jupyter-chat-example",
|
|
3
|
-
"version": "0.25.0-alpha.
|
|
3
|
+
"version": "0.25.0-alpha.4",
|
|
4
4
|
"description": "A chat extension providing a chat as example",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"install:extension": "jlpm build"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@jupyter/chat": "^0.25.0-alpha.
|
|
47
|
+
"@jupyter/chat": "^0.25.0-alpha.4",
|
|
48
48
|
"@jupyterlab/application": "^4.5.0",
|
|
49
49
|
"@jupyterlab/apputils": "^4.6.0",
|
|
50
50
|
"@jupyterlab/notebook": "^4.5.0",
|
package/src/index.ts
CHANGED
|
@@ -52,7 +52,8 @@ class ChatContext extends AbstractChatContext {
|
|
|
52
52
|
class MyChatModel extends AbstractChatModel {
|
|
53
53
|
constructor(options: IChatModel.IOptions) {
|
|
54
54
|
super(options);
|
|
55
|
-
|
|
55
|
+
// This example model has no backend; give it a stable client-side id.
|
|
56
|
+
this.setReady(UUID.uuid4());
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
sendMessage(newMessage: INewMessage): string | null {
|