Update TitanEmbeddingBedrockApi for TitanEmbeddingResponse

- Update the fields successCount, failureCount and results

Signed-off-by: Ilayaperumal Gopinathan <ilayaperumal.gopinathan@broadcom.com>
This commit is contained in:
Ilayaperumal Gopinathan
2025-04-10 19:40:22 +01:00
parent 3409c1fd87
commit 352c0d83be

View File

@@ -177,7 +177,10 @@ public class TitanEmbeddingBedrockApi extends
public record TitanEmbeddingResponse(
@JsonProperty("embedding") float[] embedding,
@JsonProperty("inputTextTokenCount") Integer inputTextTokenCount,
@JsonProperty("successCount") Integer successCount,
@JsonProperty("failureCount") Integer failureCount,
@JsonProperty("embeddingsByType") Map<String, Object> embeddingsByType,
@JsonProperty("results") Object results,
@JsonProperty("message") Object message) {