deep-chat-dev 9.0.132 → 9.0.134
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/README.md +3 -3
- package/custom-elements.json +3153 -2730
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.d.ts +4 -5
- package/dist/deepChat.d.ts.map +1 -1
- package/dist/deepChat.js +485 -472
- package/dist/services/serviceIO.d.ts +4 -2
- package/dist/services/serviceIO.d.ts.map +1 -1
- package/dist/services/utils/baseServiceIO.d.ts +4 -2
- package/dist/services/utils/baseServiceIO.d.ts.map +1 -1
- package/dist/types/{request.d.ts → connect.d.ts} +4 -2
- package/dist/types/connect.d.ts.map +1 -0
- package/dist/types/fileServiceConfigs.d.ts +4 -4
- package/dist/utils/HTTP/requestUtils.d.ts +2 -2
- package/dist/utils/legacy/legacy.d.ts +3 -1
- package/dist/utils/legacy/legacy.d.ts.map +1 -1
- package/dist/views/chat/chatView.d.ts +1 -1
- package/dist/views/chat/chatView.d.ts.map +1 -1
- package/dist/views/chat/input/buttons/submit/submitButton.d.ts.map +1 -1
- package/dist/views/chat/messages/messages.d.ts +2 -2
- package/dist/views/chat/messages/messages.d.ts.map +1 -1
- package/dist/views/chat/messages/setupMessages.d.ts.map +1 -1
- package/dist/webModel/webModel.d.ts +1 -1
- package/dist/webModel/webModel.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/request.d.ts.map +0 -1
package/README.md
CHANGED
@@ -45,10 +45,10 @@ The exact syntax for the above example will vary depending on the framework of y
|
|
45
45
|
|
46
46
|

|
47
47
|
|
48
|
-
Connecting to a service is simple, all you need to do is define its API details using the [`
|
48
|
+
Connecting to a service is simple, all you need to do is define its API details using the [`connect`](https://deepchat.dev/docs/connect#connect-1) property:
|
49
49
|
|
50
50
|
```
|
51
|
-
<deep-chat
|
51
|
+
<deep-chat connect='{"url":"https://service.com/chat"}'/>
|
52
52
|
```
|
53
53
|
|
54
54
|
The service will need to be able to handle request and response formats used in Deep Chat. Please read the [Connect](https://deepchat.dev/docs/connect) section in documentation and check out the [server template](https://deepchat.dev/examples/servers) examples.
|
@@ -67,7 +67,7 @@ Connect to popular AI APIs directly from the browser via the use of the [`direct
|
|
67
67
|
<deep-chat directConnection='{"openAI":{"key": "optional-key-here"}}'/>
|
68
68
|
```
|
69
69
|
|
70
|
-
Please note that this approach should be used for local/prototyping/demo purposes ONLY as it exposes the API Key to the browser. When ready to go live, please switch to using the [`
|
70
|
+
Please note that this approach should be used for local/prototyping/demo purposes ONLY as it exposes the API Key to the browser. When ready to go live, please switch to using the [`connect`](https://deepchat.dev/docs/connect#connect-1) property described above along with a [proxy service](https://github.com/OvidijusParsiunas/deep-chat/tree/main/example-servers).
|
71
71
|
|
72
72
|
Currently supported direct API connections:
|
73
73
|
[OpenAI](https://openai.com/blog/openai-api), [HuggingFace](https://huggingface.co/docs/api-inference/index), [Cohere](https://docs.cohere.com/docs), [Stability AI](https://stability.ai/), [Azure](https://learn.microsoft.com/en-gb/azure/cognitive-services/), [AssemblyAI](https://www.assemblyai.com/)
|