Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini256 committed Feb 17, 2025
1 parent 2b39d38 commit 4abf57c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/app/src/api/knowledge-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export type KnowledgeBaseIndexMethod = 'vector' | 'knowledge_graph';

export interface CreateKnowledgeBaseParams {
name: string;
description: string;
description?: string | null;
index_methods: KnowledgeBaseIndexMethod[];
llm_id?: number | null;
embedding_model_id?: number | null;
Expand All @@ -57,7 +57,7 @@ export interface CreateKnowledgeBaseParams {

export interface UpdateKnowledgeBaseParams {
name?: string;
description?: string;
description?: string | null;
}

export interface KnowledgeBaseSummary {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/components/form/biz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export const KBSelect = forwardRef<any, Omit<FormComboboxProps<KnowledgeBaseSumm
placeholder="Select Knowledge Base"
config={{
options: kbs ?? [],
optionKeywords: option => [String(option.id), option.name, option.description],
optionKeywords: option => [String(option.id), option.name, option.description ?? ''],
loading: isLoading,
error,
renderValue: option => (
Expand Down

0 comments on commit 4abf57c

Please sign in to comment.