Models
Overview
Section titled “Overview”Available Operations
Section titled “Available Operations”List all available models
Example Usage
Section titled “Example Usage”from r9s import R9S
with R9S(api_key=os.getenv("R9S_API_KEY",""),) as r9_s:
res = r9_s.models.list()
# Handle response print(res)Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
retries | object | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
Response
Section titled “Response”ModelListResponse
Errors
Section titled “Errors”| Error Type | Status Code | Content Type |
|---|---|---|
| errors.AuthenticationError | 401 | application/json |
| errors.PermissionDeniedError | 403 | application/json |
| errors.InternalServerError | 500 | application/json |
| errors.R9SDefaultError | 4XX, 5XX | */* |
retrieve
Section titled “retrieve”Retrieve detailed information for a specified model
Example Usage
Section titled “Example Usage”from r9s import R9S
with R9S(api_key=os.getenv("R9S_API_KEY",""),) as r9_s:
res = r9_s.models.retrieve(model="gpt-4o-mini")
# Handle response print(res)Parameters
Section titled “Parameters”| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
model | str | :heavy_check_mark: | Model name | |
retries | object | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
Response
Section titled “Response”Model
Errors
Section titled “Errors”| Error Type | Status Code | Content Type |
|---|---|---|
| errors.AuthenticationError | 401 | application/json |
| errors.PermissionDeniedError | 403 | application/json |
| errors.NotFoundError | 404 | application/json |
| errors.InternalServerError | 500 | application/json |
| errors.R9SDefaultError | 4XX, 5XX | */* |