Open
Description
需求动机
Add a feature to the x component that render sources and related content. Having dedicated fields for reference sources and additional resources would be highly valuable, as it allows us to present the origin of the information and any related content that might enhance understanding.
提议的 API 是什么样的?
We will declare something like this to define these references:
export interface ChatReference {
description?: string;
title: string;
url: string;
}
...
And finally refer them in the parameter references?: ChatReference[];