Reference
SDKs
- Overview
- Openlayer SDKs
CLI
- Overview
- CLI global options
- Commands
REST API
- Overview
- Workspaces
- Invites and API keys
- Projects
- Development
- Monitoring
List project commits
List the commits (project versions) in a project.
from openlayer import Openlayer
client = Openlayer()
client.projects.commits.list(
project_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
{
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"dateCreated": "2024-03-22T11:31:01.185Z",
"status": "completed",
"statusMessage": "Commit successfully processed.",
"projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"commit": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"authorId": "589ece63-49a2-41b4-98e1-10547761d4b0",
"dateCreated": "2024-03-22T11:31:01.185Z",
"fileSize": 1024,
"message": "Updated the prompt.",
"mlModelId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"validationDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"trainingDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"storageUri": "s3://...",
"gitCommitSha": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"gitCommitRef": "main",
"gitCommitUrl": "<string>"
},
"deploymentStatus": "Deployed",
"mlModelId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"validationDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"trainingDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"archived": false,
"dateArchived": "2024-03-22T11:31:01.185Z",
"passingGoalCount": 5,
"failingGoalCount": 1,
"totalGoalCount": 6,
"links": {
"app": "https://app.openlayer.com/myWorkspace/3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your workspace API key. See Find your API key for more information.
Path Parameters
The project id.
Query Parameters
The page to return in a paginated query.
x >= 1
Maximum number of items to return per page.
1 <= x <= 100
Response
The project version (commit) id.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
The project version (commit) creation date.
"2024-03-22T11:31:01.185Z"
The commit status. Initially, the commit is queued
, then, it switches to running
. Finally, it can be paused
, failed
, or completed
.
queued
, running
, paused
, failed
, completed
, unknown
"completed"
The commit status message.
"Commit successfully processed."
The details of a commit (project version).
The commit id.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
The author id of the commit.
"589ece63-49a2-41b4-98e1-10547761d4b0"
The size of the commit bundle in bytes.
1024
The commit message.
"Updated the prompt."
The model id.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
The validation dataset id.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
The training dataset id.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
The storage URI where the commit bundle is stored.
"s3://..."
The commit creation date.
"2024-03-22T11:31:01.185Z"
The SHA of the corresponding git commit.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
The ref of the corresponding git commit.
"main"
The URL of the corresponding git commit.
The model id.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
The validation dataset id.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
The training dataset id.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
The commit archive date.
"2024-03-22T11:31:01.185Z"
The number of tests that are passing for the commit.
x >= 0
5
The number of tests that are failing for the commit.
x >= 0
1
The total number of tests for the commit.
x >= 0
6
The deployment status associated with the commit's model.
30
"Deployed"
Whether the commit is archived.
false
Was this page helpful?
from openlayer import Openlayer
client = Openlayer()
client.projects.commits.list(
project_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
{
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"dateCreated": "2024-03-22T11:31:01.185Z",
"status": "completed",
"statusMessage": "Commit successfully processed.",
"projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"commit": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"authorId": "589ece63-49a2-41b4-98e1-10547761d4b0",
"dateCreated": "2024-03-22T11:31:01.185Z",
"fileSize": 1024,
"message": "Updated the prompt.",
"mlModelId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"validationDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"trainingDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"storageUri": "s3://...",
"gitCommitSha": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"gitCommitRef": "main",
"gitCommitUrl": "<string>"
},
"deploymentStatus": "Deployed",
"mlModelId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"validationDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"trainingDatasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"archived": false,
"dateArchived": "2024-03-22T11:31:01.185Z",
"passingGoalCount": 5,
"failingGoalCount": 1,
"totalGoalCount": 6,
"links": {
"app": "https://app.openlayer.com/myWorkspace/3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
]
}