This commit is contained in:
Jicheng Lu 2024-09-10 15:11:40 -05:00
parent 0cebb56a3e
commit 6bfb2523f5
4 changed files with 39 additions and 2 deletions

View file

@ -115,7 +115,7 @@ public partial class TencentCosService
return foundMsgs;
}
public bool SaveMessageFiles(string conversationId, string messageId, string source, List<InputFileModel> files)
public bool SaveMessageFiles(string conversationId, string messageId, string source, List<FileDataModel> files)
{
if (files.IsNullOrEmpty()) return false;

View file

@ -0,0 +1,36 @@
using BotSharp.Abstraction.Knowledges.Models;
namespace BotSharp.Plugin.TencentCos.Services;
public partial class TencentCosService
{
public bool SaveKnowledgeBaseFile(string collectionName, string vectorStoreProvider, string fileId, string fileName, Stream stream)
{
throw new NotImplementedException();
}
public bool DeleteKnowledgeFile(string collectionName, string vectorStoreProvider, string? fileId = null)
{
throw new NotImplementedException();
}
public bool SaveKnolwedgeBaseFileMeta(string collectionName, string vectorStoreProvider, string fileId, KnowledgeDocMetaData metaData)
{
throw new NotImplementedException();
}
public KnowledgeDocMetaData? GetKnowledgeBaseFileMeta(string collectionName, string vectorStoreProvider, string fileId)
{
throw new NotImplementedException();
}
public IEnumerable<KnowledgeFileModel> GetKnowledgeBaseFiles(string collectionName, string vectorStoreProvider)
{
throw new NotImplementedException();
}
public FileBinaryDataModel? GetKnowledgeBaseFileBinaryData(string collectionName, string vectorStoreProvider, string fileId)
{
throw new NotImplementedException();
}
}

View file

@ -16,7 +16,7 @@ public partial class TencentCosService
return found;
}
public bool SaveUserAvatar(InputFileModel file)
public bool SaveUserAvatar(FileDataModel file)
{
if (file == null || string.IsNullOrEmpty(file.FileData)) return false;

View file

@ -1,4 +1,5 @@
using BotSharp.Abstraction.Files;
using BotSharp.Abstraction.Knowledges.Models;
using BotSharp.Abstraction.Users;
using BotSharp.Plugin.TencentCos.Settings;
using System.Net.Mime;