@opentiny/genui-sdk-vue 1.0.0 → 1.0.1-feature-github-action-test.0
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 +37 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +87797 -85565
- package/package.json +15 -2
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @opentiny/genui-sdk-vue
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
A Vue 3 component library for enhanced LLM display and interaction. Stream AI-generated structured output into OpenTiny interactive UI components with bidirectional conversation support.
|
|
5
|
+
|
|
6
|
+
* **Streaming Rendering:** Content renders progressively as the model generates—no long waits for full responses.
|
|
7
|
+
* **Structured Output:** LLM output conforms to JSON Schema, enabling reliable parsing and rendering.
|
|
8
|
+
* **Interaction:** User actions (form submit, button click) feed back into the conversation context for seamless multi-turn flows.
|
|
9
|
+
|
|
10
|
+
[Learn more about GenUI SDK](https://opentiny.design/genui-sdk).
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```vue
|
|
15
|
+
<script setup>
|
|
16
|
+
import { GenuiChat, GenuiConfigProvider } from '@opentiny/genui-sdk-vue';
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<GenuiConfigProvider theme="dark">
|
|
21
|
+
<GenuiChat
|
|
22
|
+
url="/api/chat"
|
|
23
|
+
model="deepseek-chat"
|
|
24
|
+
/>
|
|
25
|
+
</GenuiConfigProvider>
|
|
26
|
+
</template>
|
|
27
|
+
```
|
|
28
|
+
## Documentation
|
|
29
|
+
|
|
30
|
+
* [quick-start](https://docs.opentiny.design/genui-sdk/guide/quick-start)
|
|
31
|
+
* [start-with-render](https://docs.opentiny.design/genui-sdk/guide/start-with-renderer)
|
|
32
|
+
|
|
33
|
+
## API
|
|
34
|
+
|
|
35
|
+
* [GenuiRender](https://docs.opentiny.design/genui-sdk/components/renderer)
|
|
36
|
+
* [GenuiChat](https://docs.opentiny.design/genui-sdk/components/chat)
|
|
37
|
+
* [GenuiConfigProvider](https://docs.opentiny.design/genui-sdk/components/config-provider)
|
package/dist/index.d.ts
CHANGED
|
@@ -477,7 +477,7 @@ declare interface IMessageItem {
|
|
|
477
477
|
/**
|
|
478
478
|
* 消息项类型
|
|
479
479
|
*/
|
|
480
|
-
declare type IMessageItem_2 = IMarkdownMessageItem | ISchemaCardMessageItem | IToolMessageItem;
|
|
480
|
+
declare type IMessageItem_2 = IMarkdownMessageItem | ISchemaCardMessageItem | IToolMessageItem | IReasoningMessageItem;
|
|
481
481
|
|
|
482
482
|
declare type Indices<T> = Exclude<keyof T, ArrayKeys>;
|
|
483
483
|
|
|
@@ -533,6 +533,12 @@ declare const INVALID: INVALID;
|
|
|
533
533
|
|
|
534
534
|
declare type IpVersion = "v4" | "v6";
|
|
535
535
|
|
|
536
|
+
declare interface IReasoningMessageItem {
|
|
537
|
+
type: 'reasoning';
|
|
538
|
+
content: string;
|
|
539
|
+
thinking?: boolean;
|
|
540
|
+
}
|
|
541
|
+
|
|
536
542
|
export declare interface IRendererProps {
|
|
537
543
|
content: string | {
|
|
538
544
|
[prop: string]: any;
|