diff --git a/.github/workflows/scripts/setup-go-workspace.sh b/.github/workflows/scripts/setup-go-workspace.sh index a5effd3c49..dbc0165f14 100755 --- a/.github/workflows/scripts/setup-go-workspace.sh +++ b/.github/workflows/scripts/setup-go-workspace.sh @@ -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" diff --git a/core/providers/replicate/replicate.go b/core/providers/replicate/replicate.go index 3fe52615ec..2fa9c81ab5 100644 --- a/core/providers/replicate/replicate.go +++ b/core/providers/replicate/replicate.go @@ -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, diff --git a/framework/configstore/migrations_test.go b/framework/configstore/migrations_test.go index a57f7262cb..742a3c0a46 100644 --- a/framework/configstore/migrations_test.go +++ b/framework/configstore/migrations_test.go @@ -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 } @@ -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 @@ -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 @@ -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") }) diff --git a/transports/config.schema.json b/transports/config.schema.json index 50f5a28c4c..1e5070d76f 100644 --- a/transports/config.schema.json +++ b/transports/config.schema.json @@ -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 @@ -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)"