fix typos ...

This commit is contained in:
2026-09-19 12:14:44 +03:30
parent 74357567eb
commit ae2713eddd
6 changed files with 18 additions and 18 deletions
@@ -40,8 +40,8 @@ namespace xAiApi.Controllers
/// <param name="cancellationToken"></param>
/// <returns></returns>
[AllowAnonymous]
[HttpGet("Embeding")]
public async Task<ActionResult<float[]>> Embeding(
[HttpGet("Embedding")]
public async Task<ActionResult<float[]>> Embedding(
[FromQuery] string content,
CancellationToken cancellationToken = default
)
@@ -54,7 +54,7 @@ namespace xAiApi.Controllers
ValidationProvider.NotEmpty(content);
//
var result = await aiService.Embeding(
var result = await aiService.Embedding(
content: content,
cancellationToken: cancellationToken
);
@@ -77,8 +77,8 @@ namespace xAiApi.Controllers
/// <param name="cancellationToken"></param>
/// <returns></returns>
[AllowAnonymous]
[HttpGet("Embedings")]
public async Task<ActionResult<IReadOnlyList<float[]>>> Embedings(
[HttpGet("Embeddings")]
public async Task<ActionResult<IReadOnlyList<float[]>>> Embeddings(
[FromQuery] string[] batch,
CancellationToken cancellationToken = default
)
@@ -91,7 +91,7 @@ namespace xAiApi.Controllers
ValidationProvider.NotZeroChilds(batch);
//
var result = await aiService.Embedings(
var result = await aiService.Embeddings(
batch: batch,
cancellationToken: cancellationToken
);