fix typo
This commit is contained in:
parent
e3d9d38820
commit
fee39d0e38
|
|
@ -1,7 +1,5 @@
|
|||
using BotSharp.Abstraction.Knowledges.Enums;
|
||||
using BotSharp.Abstraction.Knowledges.Models;
|
||||
using BotSharp.OpenAPI.ViewModels.Knowledges;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace BotSharp.OpenAPI.Controllers;
|
||||
|
||||
|
|
@ -19,7 +17,7 @@ public class KnowledgeBaseController : ControllerBase
|
|||
}
|
||||
|
||||
[HttpPost("/knowledge/{collection}/search")]
|
||||
public async Task<IEnumerable<KnowledgeRetrivalViewModel>> SearchKnowledge([FromQuery] string collection, [FromBody] SearchKnowledgeModel model)
|
||||
public async Task<IEnumerable<KnowledgeRetrivalViewModel>> SearchKnowledge([FromRoute] string collection, [FromBody] SearchKnowledgeModel model)
|
||||
{
|
||||
var options = new KnowledgeRetrievalOptions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,9 +5,6 @@ namespace BotSharp.OpenAPI.ViewModels.Knowledges;
|
|||
|
||||
public class SearchKnowledgeModel
|
||||
{
|
||||
[JsonPropertyName("collection")]
|
||||
public string Collection { get; set; } = KnowledgeCollectionName.BotSharp;
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; } = string.Empty;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue