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
2 changes: 2 additions & 0 deletions .github/workflows/scripts/setup-go-workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ go work use ./plugins/logging
go work use ./plugins/maxim
go work use ./plugins/mocker
go work use ./plugins/otel
go work use ./plugins/prompts
go work use ./plugins/semanticcache
go work use ./plugins/telemetry
go work use ./transports
go work use ./cli
echo "✅ Go workspace initialized"
2 changes: 1 addition & 1 deletion core/providers/replicate/replicate.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func (provider *ReplicateProvider) listDeploymentsByKey(ctx *schemas.BifrostCont
client := provider.client
extraHeaders := provider.networkConfig.ExtraHeaders

if !key.ReplicateKeyConfig.UseDeploymentsEndpoint {
if key.ReplicateKeyConfig == nil || !key.ReplicateKeyConfig.UseDeploymentsEndpoint {
return ToBifrostListModelsResponse(
&ReplicateDeploymentListResponse{},
providerName,
Expand Down
14 changes: 7 additions & 7 deletions framework/configstore/migrations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,13 +582,13 @@ func setupProviderTestDBWithoutStoreRawColumn(t *testing.T) *gorm.DB {
`).Error
require.NoError(t, err, "Failed to create config_providers table")

// Create the gomigrate table for the migrator
// Create the migrations table for the migrator (matches migrator.DefaultOptions.TableName)
err = db.Exec(`
CREATE TABLE IF NOT EXISTS gomigrate (
CREATE TABLE IF NOT EXISTS migrations (
id VARCHAR(255) PRIMARY KEY
)
`).Error
require.NoError(t, err, "Failed to create gomigrate table")
require.NoError(t, err, "Failed to create migrations table")

return db
}
Expand All @@ -615,7 +615,7 @@ func trySetupPostgresDBWithoutStoreRawColumn(t *testing.T, testSuffix string) *g
}

// Drop the table if it exists to start fresh (for this specific test)
db.Exec("DROP TABLE IF EXISTS gomigrate")
db.Exec("DROP TABLE IF EXISTS migrations")
db.Exec("DROP TABLE IF EXISTS config_providers")

// Create the config_providers table manually without store_raw_request_response column
Expand Down Expand Up @@ -645,9 +645,9 @@ func trySetupPostgresDBWithoutStoreRawColumn(t *testing.T, testSuffix string) *g
return nil
}

// Create the gomigrate table for the migrator
// Create the migrations table for the migrator (matches migrator.DefaultOptions.TableName)
err = db.Exec(`
CREATE TABLE IF NOT EXISTS gomigrate (
CREATE TABLE IF NOT EXISTS migrations (
id VARCHAR(255) PRIMARY KEY
)
`).Error
Expand All @@ -657,7 +657,7 @@ func trySetupPostgresDBWithoutStoreRawColumn(t *testing.T, testSuffix string) *g

// Clean up tables after the test
t.Cleanup(func() {
db.Exec("DROP TABLE IF EXISTS gomigrate")
db.Exec("DROP TABLE IF EXISTS migrations")
db.Exec("DROP TABLE IF EXISTS config_providers")
})

Expand Down
11 changes: 6 additions & 5 deletions transports/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@
"type": "boolean",
"description": "When true, MCP tools are not automatically injected into requests. Tools are only included when explicitly specified via request context filters or headers, such as x-bf-mcp-include-tools or x-bf-mcp-include-clients.",
"default": false
},
"routing_chain_max_depth": {
"type": "integer",
"minimum": 1,
"description": "Maximum depth for routing rule chain evaluation",
"default": 10
}
},
"additionalProperties": false
Expand Down Expand Up @@ -300,11 +306,6 @@
"format": "date-time",
"description": "Last time budget was reset"
},
"calendar_aligned": {
"type": "boolean",
"description": "Snap resets to calendar boundaries (day/week/month/year start)",
"default": false
},
"virtual_key_id": {
"type": "string",
"description": "ID of the virtual key this budget belongs to (mutually exclusive with provider_config_id)"
Expand Down
Loading