Skip to content

Commit

Permalink
1.4.2 - custom roles to allow responses from multiple entities such a…
Browse files Browse the repository at this point in the history
…s ai agents
  • Loading branch information
OvidijusParsiunas committed Nov 15, 2023
1 parent 8b294d1 commit 326952c
Show file tree
Hide file tree
Showing 18 changed files with 6,141 additions and 6,107 deletions.
11,972 changes: 5,980 additions & 5,992 deletions component/custom-elements.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions component/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deep-chat",
"version": "1.4.1",
"version": "1.4.2",
"description": "Customizable chat component for AI APIs",
"main": "./dist/deepChat.js",
"module": "./dist/deepChat.js",
Expand Down
30 changes: 15 additions & 15 deletions example-servers/nextjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example-servers/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"dependencies": {
"axios": "^1.4.0",
"deep-chat-react": "^1.4.1",
"deep-chat-react": "^1.4.2",
"eventsource-parser": "^1.0.0",
"next": "13.4.9",
"react": "^18.2.0",
Expand Down
14 changes: 7 additions & 7 deletions example-servers/sveltekit/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example-servers/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"type": "module",
"dependencies": {
"deep-chat": "^1.4.1",
"deep-chat": "^1.4.2",
"eventsource-parser": "^1.0.0"
}
}
30 changes: 15 additions & 15 deletions example-servers/ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example-servers/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@types/node": "^16.18.38",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"deep-chat-react": "^1.4.1",
"deep-chat-react": "^1.4.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
Expand Down
18 changes: 9 additions & 9 deletions other-packages/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions other-packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deep-chat-react",
"version": "1.4.1",
"version": "1.4.2",
"description": "Customizable chat component for AI APIs",
"main": "./dist/deepChat.js",
"module": "./dist/deepChat.js",
Expand Down Expand Up @@ -32,7 +32,7 @@
"license": "MIT",
"dependencies": {
"@lit-labs/react": "^1.1.1",
"deep-chat": "1.4.1"
"deep-chat": "1.4.2"
},
"devDependencies": {
"@types/react": "^18.0.28",
Expand Down
13 changes: 10 additions & 3 deletions website/docs/docs/connect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,21 @@ Object used to configure the outgoing messages request settings. It MUST have ei

### `Response` {#Response}

- Type: {`text?: string`, [`files?: MessageFile[]`](/docs/messages#MessageFile), `html?: string`, `error?: string`}
- Type: {[`MessageContent`](/docs/messages/#MessageContent), `error?: string`}

Object containing response information from the target service. It should have _one_ of these properties: <br />
Object containing response information from the target service. It has the same properties as [`MessageContent`](/docs/messages/#MessageContent) with an additional optional `error` property: <br />
`text` is the content for a text message. <br />
`files` is an array that encapsulates details on the response files. <br />
`html` is a string that defines the markup for [message elements](/docs/messages/HTML). <br />
`error` describes information about a server error. If the _displayServiceErrorMessages_ property in [`errorMessages`](/docs/messages#errorMessages)
is set to _true_, this message will be displayed in the chat inside the error bubble. <br />
is set to _true_, the same message will be displayed in the chat's error bubble. <br />

#### Examples:

Simple - `{text: "Simple response"}` <br />
Mixed - `{files: [{name: 'file.txt'}], html: "<div>Custom Element</div>"}` <br />
Custom role - `{role: "bob", text: "Message from bob"}` <br />
Error - `{error: "Service Error"}` <br />

<LineBreak></LineBreak>

Expand Down
2 changes: 1 addition & 1 deletion website/docs/docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ npm install deep-chat-react
Access the component via CDN:

```
https://unpkg.com/deep-chat@1.4.1/dist/deepChat.bundle.js
https://unpkg.com/deep-chat@1.4.2/dist/deepChat.bundle.js
```
Loading

0 comments on commit 326952c

Please sign in to comment.