fix typos ...
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user