OhMyGPT
Models

Get recent model availability

GET
/v1/models/{creator}/{model}/availability

Answers whether the model works right now and when it had trouble over the last 72 hours, when you leave the provider choice to the gateway and for each provider that served it. Counted the same way as /v1/models/{creator}/{model}/stats: auto counts each request that left the provider choice to the gateway by the result the caller received; each provider counts every upstream attempt it was sent, which is what a request naming that provider gets. Only rates and minute counts are published. Refreshed about once a minute.

路径参数

creator*string
model*string

响应主体

Successful response

application/json
  1. response
as_of*string
格式date-time
auto*

Requests that left the provider choice to the gateway.

current_window_minutes*integer

How far back every status looks: the shortest of 15 minutes, 1 hour, 6 hours and 24 hours in which auto has at least 20 samples, or 24 hours when none has.

值于15603601440
model_id*string
providers*array<>

Providers with upstream attempts in the 72 hours, sorted by name.

示例请求
curl -X GET 'https://api.ohmygpt.com/v1/models/string/string/availability'
示例响应
{  "as_of": "2019-08-24T14:15:22Z",  "auto": {    "affected_minutes": 0,    "hourly": [      {        "affected_minutes": 0,        "status": "operational",        "time": "2019-08-24T14:15:22Z",        "uptime_pct": 0      }    ],    "status": "operational",    "uptime_pct": 0  },  "current_window_minutes": 15,  "model_id": "string",  "providers": [    {      "affected_minutes": 0,      "hourly": [        {          "affected_minutes": 0,          "status": "operational",          "time": "2019-08-24T14:15:22Z",          "uptime_pct": 0        }      ],      "status": "operational",      "uptime_pct": 0,      "provider": "string"    }  ]}