Governance

Update provider governance

PUT/api/governance/providers/{provider_name}

Updates governance settings (budget and rate limits) for a specific provider.

Path Parameters

provider_name*string

Provider name

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "http://localhost:8080/api/governance/providers/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "provider": "string",
  "budget": {
    "id": "string",
    "max_limit": 0,
    "reset_duration": "string",
    "calendar_aligned": false,
    "last_reset": "2019-08-24T14:15:22Z",
    "current_usage": 0,
    "config_hash": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  },
  "rate_limit": {
    "id": "string",
    "token_max_limit": 0,
    "token_reset_duration": "string",
    "token_current_usage": 0,
    "token_last_reset": "2019-08-24T14:15:22Z",
    "request_max_limit": 0,
    "request_reset_duration": "string",
    "request_current_usage": 0,
    "request_last_reset": "2019-08-24T14:15:22Z",
    "config_hash": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}
{
  "event_id": "string",
  "type": "string",
  "is_bifrost_error": true,
  "status_code": 0,
  "error": {
    "type": "string",
    "code": "string",
    "message": "string",
    "param": "string",
    "event_id": "string"
  },
  "extra_fields": {
    "provider": "openai",
    "model_requested": "string",
    "request_type": "string"
  }
}
{
  "event_id": "string",
  "type": "string",
  "is_bifrost_error": true,
  "status_code": 0,
  "error": {
    "type": "string",
    "code": "string",
    "message": "string",
    "param": "string",
    "event_id": "string"
  },
  "extra_fields": {
    "provider": "openai",
    "model_requested": "string",
    "request_type": "string"
  }
}
{
  "event_id": "string",
  "type": "string",
  "is_bifrost_error": true,
  "status_code": 0,
  "error": {
    "type": "string",
    "code": "string",
    "message": "string",
    "param": "string",
    "event_id": "string"
  },
  "extra_fields": {
    "provider": "openai",
    "model_requested": "string",
    "request_type": "string"
  }
}