gci-chatbot-ai 1.0.27 → 1.0.28
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 +14 -12
- package/dist/gci-chatbot-ai.js +933 -932
- package/dist/gci-chatbot-ai.umd.cjs +11 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,13 +16,13 @@ yarn add gci-chatbot-ai
|
|
|
16
16
|
|
|
17
17
|
```vue
|
|
18
18
|
<script setup lang="ts">
|
|
19
|
-
import { ChatbotComponent } from 'gci-chatbot-ai'
|
|
19
|
+
import { ChatbotComponent } from 'gci-chatbot-ai'
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<template>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
<div>
|
|
24
|
+
<ChatbotComponent />
|
|
25
|
+
</div>
|
|
26
26
|
</template>
|
|
27
27
|
```
|
|
28
28
|
|
|
@@ -32,32 +32,33 @@ You can customize the API endpoint, client ID, and token:
|
|
|
32
32
|
|
|
33
33
|
```vue
|
|
34
34
|
<script setup lang="ts">
|
|
35
|
-
import { ChatbotComponent } from 'gci-chatbot-ai'
|
|
35
|
+
import { ChatbotComponent } from 'gci-chatbot-ai'
|
|
36
36
|
</script>
|
|
37
37
|
|
|
38
38
|
<template>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
<div>
|
|
40
|
+
<ChatbotComponent client-id="your-client-id" token="your-auth-token" endpoint="https://your-custom-api-endpoint.com/chat" />
|
|
41
|
+
</div>
|
|
42
42
|
</template>
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### Required Parameters
|
|
46
46
|
|
|
47
47
|
The `ChatbotComponent` component requires the following parameters:
|
|
48
|
+
|
|
48
49
|
- `client-id`: Your client identification string
|
|
49
50
|
- `endpoint`: The API endpoint URL for the chat service
|
|
50
51
|
- `token`: Authentication token for the API
|
|
51
52
|
|
|
52
53
|
```vue
|
|
53
54
|
<script setup lang="ts">
|
|
54
|
-
import { ChatbotComponent } from 'gci-chatbot-ai'
|
|
55
|
+
import { ChatbotComponent } from 'gci-chatbot-ai'
|
|
55
56
|
</script>
|
|
56
57
|
|
|
57
58
|
<template>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
<div>
|
|
60
|
+
<ChatbotComponent client-id="required-client-id" token="required-auth-token" endpoint="https://api.example.com/chat" />
|
|
61
|
+
</div>
|
|
61
62
|
</template>
|
|
62
63
|
```
|
|
63
64
|
|
|
@@ -91,6 +92,7 @@ npm run build
|
|
|
91
92
|
## Configuration
|
|
92
93
|
|
|
93
94
|
The component uses the following dependencies:
|
|
95
|
+
|
|
94
96
|
- Vue 3
|
|
95
97
|
- @ai-sdk/vue
|
|
96
98
|
- ai (for AI transport)
|