Skip to content

Commit

Permalink
Fix: Add uploadID to knowledge file (#120)
Browse files Browse the repository at this point in the history
Signed-off-by: Daishan Peng <[email protected]>
  • Loading branch information
StrongMonkey authored Oct 3, 2024
1 parent dc8870b commit 263d35d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apiclient/types/knowledge.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type KnowledgeFile struct {
RemoteKnowledgeSourceType RemoteKnowledgeSourceType `json:"remoteKnowledgeSourceType,omitempty"`
IngestionStatus IngestionStatus `json:"ingestionStatus,omitempty"`
FileDetails FileDetails `json:"fileDetails,omitempty"`
UploadID string `json:"uploadID,omitempty"`
}

type FileDetails struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/api/handlers/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func convertKnowledgeFile(file v1.KnowledgeFile, ws v1.Workspace) types.Knowledg
FileDetails: file.Status.FileDetails,
RemoteKnowledgeSourceID: file.Spec.RemoteKnowledgeSourceName,
RemoteKnowledgeSourceType: file.Spec.RemoteKnowledgeSourceType,
UploadID: file.Status.UploadID,
}
}

Expand Down

0 comments on commit 263d35d

Please sign in to comment.