chore: 项目基线(基于 WeKnora 定制版,整理文件忽略规则)
This commit is contained in:
commit
9097ee699d
5769 files changed
+1446466
No files matched your search
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* 将 API 返回的知识库范围归一化为前端表单可安全使用的数组。
|
||||
*
|
||||
* @param ids API Key 的知识库 ID;完全授权的 Key 可能由服务端返回 null。
|
||||
* @returns 一份新的知识库 ID 数组;null 或 undefined 返回空数组,表示全部知识库。
|
||||
*/
|
||||
export function normalizeAPIKeyKnowledgeBaseIDs(
|
||||
ids: readonly string[] | null | undefined,
|
||||
): string[] {
|
||||
return ids ? [...ids] : []
|
||||
}
|
||||
Reference in new issue
Block a user