Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions core/internal/testutil/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,10 @@ func (account *ComprehensiveTestAccount) GetKeysForProvider(ctx *context.Context
case schemas.HuggingFace:
return []schemas.Key{
{
Value: os.Getenv("HUGGING_FACE_API_KEY"),
Models: []string{},
Weight: 1.0,
Value: os.Getenv("HUGGING_FACE_API_KEY"),
Models: []string{},
Weight: 1.0,
UseForBatchAPI: bifrost.Ptr(true),
},
}, nil
case schemas.Nebius:
Expand Down
6 changes: 3 additions & 3 deletions core/providers/utils/html_response_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func TestHandleProviderAPIErrorWithHTML(t *testing.T) {
</html>
`),
description: "Should detect and handle HTML only after JSON parse fails",
expectedInMessage: "Internal Server Error",
expectedInMessage: "HTML response received from provider",
},
{
name: "HTML 403 error - lazy detection",
Expand All @@ -226,8 +226,8 @@ func TestHandleProviderAPIErrorWithHTML(t *testing.T) {
</body>
</html>
`),
description: "Should detect and extract message from HTML on parse failure",
expectedInMessage: "Forbidden",
description: "Should detect HTML on parse failure",
expectedInMessage: "HTML response received from provider",
},
{
name: "Invalid JSON with HTML fallback",
Expand Down