Skip to content

Commit

Permalink
fix ineffectual error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnBlackwell committed Feb 20, 2025
1 parent b5ed0e1 commit 23e2fd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/ai-proxy/proxy/bedrock/embeddings.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ func (b *BedrockEmbeddingsProxy) handleEmbeddingBedrock(
ModelId: aws.String(req.Model),
Body: payloadBytes,
})
if err != nil {
klog.ErrorS(err, "request to bedrock failed")
return
}

response, err := convertBedrockEmbeddingToOpenAI(output, req.Model)
if err != nil {
Expand Down

0 comments on commit 23e2fd0

Please sign in to comment.