models
Creates, updates, deletes, gets or lists a models resource.
Overview​
| Name | models |
| Type | Resource |
| Id | openai.models.models |
Fields​
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | The model identifier, which can be referenced in the API endpoints. |
created | integer (unixtime) | The Unix timestamp (in seconds) when the model was created. |
object | string | The object type, which is always "model". (model) |
owned_by | string | The organization that owns the model. |
| Name | Datatype | Description |
|---|---|---|
id | string | The model identifier, which can be referenced in the API endpoints. |
created | integer (unixtime) | The Unix timestamp (in seconds) when the model was created. |
object | string | The object type, which is always "model". (model) |
owned_by | string | The organization that owns the model. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | model | openai-organization, openai-project | |
list | select | openai-organization, openai-project | ||
delete | delete | model | openai-organization, openai-project |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
model | string | The model to delete |
openai-organization | string | Optionally scope the request to a specific organization (overrides the default associated with the API key). Addressable in SQL as openai_organization. |
openai-project | string | Optionally scope the request to a specific project (overrides the default associated with the API key). Addressable in SQL as openai_project. |
SELECT examples​
- get
- list
OK
SELECT
id,
created,
object,
owned_by
FROM openai.models.models
WHERE model = '{{ model }}' -- required
AND "openai-organization" = '{{ openai-organization }}'
AND "openai-project" = '{{ openai-project }}'
;
OK
SELECT
id,
created,
object,
owned_by
FROM openai.models.models
WHERE "openai-organization" = '{{ openai-organization }}'
AND "openai-project" = '{{ openai-project }}'
;
DELETE examples​
- delete
No description available.
DELETE FROM openai.models.models
WHERE model = '{{ model }}' --required
AND "openai-organization" = '{{ openai-organization }}'
AND "openai-project" = '{{ openai-project }}'
;