2.10.0
中文
Skip to content

Introduction ​

@ant-design-x-vue/x-sdk provides the 2.10 conversation data flow, and the main package ant-design-x-vue re-exports the same set of APIs.

  • useXConversations manages the conversation list
  • useXChat manages the messages, status, and retries of a single conversation
  • XRequest sends requests, supporting manual mode, middleware, and SSE
  • OpenAIChatProvider, DeepSeekChatProvider, DefaultChatProvider unify model responses into messages
  • Multiple conversations each have their own messages, separated by conversation key
bash
pnpm add ant-design-x-vue@2.10.0

The main package includes the same version of @ant-design-x-vue/x-sdk. When installing only the SDK:

bash
pnpm add @ant-design-x-vue/x-sdk@2.10.0
ts
import {
  createOpenAIChatProvider,
  useXChat,
  useXConversations,
  XRequest,
  XStream,
} from 'ant-design-x-vue';

Pages:

1.x useXAgent is still in the main package, only serving old examples. Field descriptions can be found in SDK Data Flow.