feat: 增加EmbeddingResponse的object字段并完善AiGateWayManager的Usage统计,更新CORS配置

This commit is contained in:
ccnetcore
2025-08-11 20:24:48 +08:00
parent d9971541f2
commit 4ec4023f40
3 changed files with 5 additions and 2 deletions

View File

@@ -105,6 +105,8 @@ public record EmbeddingCreateResponse : ThorBaseResponse
public record EmbeddingResponse
{
[JsonPropertyName("object")] public string Object { get; set; } = "embedding";
[JsonPropertyName("index")] public int? Index { get; set; }
[JsonPropertyName("embedding")] public object Embedding { get; set; }