last ...
This commit is contained in:
@@ -405,13 +405,13 @@ namespace xAiApi.Providers
|
|||||||
/// List Ingested Documents of Owner (Grouped by File Name) ...
|
/// List Ingested Documents of Owner (Grouped by File Name) ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public async Task<IList<XAiKnowledgeDocumentInfo>> LoadDocumentsAsync(
|
public async Task<IList<XAiKnowledgeDocumentInfo>> LoadDocumentsAsync(
|
||||||
string ownerId,
|
XUserClaimsInfoDto userInfo = null,
|
||||||
CancellationToken cancellationToken = default
|
CancellationToken cancellationToken = default
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// Validate ...
|
// Validate ...
|
||||||
if (ownerId.IsNullOrEmpty())
|
if (userInfo.IsNullOrDefault())
|
||||||
{
|
{
|
||||||
XException.InvalidArgs.Throw();
|
XException.InvalidArgs.Throw();
|
||||||
}
|
}
|
||||||
@@ -420,7 +420,7 @@ namespace xAiApi.Providers
|
|||||||
var vectors = await dataProvider.LoadVectorsAsync(
|
var vectors = await dataProvider.LoadVectorsAsync(
|
||||||
includeEmbedding: false,
|
includeEmbedding: false,
|
||||||
cancellationToken: cancellationToken,
|
cancellationToken: cancellationToken,
|
||||||
identifierPrefix: GetOwnerPrefix(ownerId)
|
identifierPrefix: GetOwnerPrefix(userInfo.UserId)
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user