fix: 修复模型接口错误

This commit is contained in:
ccnetcore
2025-06-25 22:45:57 +08:00
parent f0ae27a50b
commit 2732df24af

View File

@@ -59,7 +59,9 @@ public class AiChatService : ApplicationService
/// <returns></returns>
public async Task<List<ModelGetListOutput>> GetModelAsync()
{
var output = await _aiModelRepository._DbQueryable.Select(x => new ModelGetListOutput
var output = await _aiModelRepository._DbQueryable
.OrderBy(x=>x.OrderNum)
.Select(x => new ModelGetListOutput
{
Id = x.Id,
Category = "chat",