Skip to content

Commit 583de09

Browse files
authored
add "failed" as a valid type for state in endpoints list (#260)
* add "failed" as a valid type for state in endpoints list * bump version * bump checkout version * bump checkout version
1 parent b281ed9 commit 583de09

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: .github/workflows/check_code_quality.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424

2525
- uses: pre-commit/[email protected]

Diff for: .github/workflows/upload-to-pypi.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
python-version: ["3.10"]
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- name: Set up Python ${{ matrix.python-version }}
1717
uses: actions/[email protected]
1818
with:

Diff for: src/together/types/endpoints.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class BaseEndpoint(TogetherJSONModel):
8686
model: str = Field(description="The model deployed on this endpoint")
8787
type: str = Field(description="The type of endpoint")
8888
owner: str = Field(description="The owner of this endpoint")
89-
state: Literal["PENDING", "STARTING", "STARTED", "STOPPING", "STOPPED", "ERROR"] = (
89+
state: Literal["PENDING", "STARTING", "STARTED", "STOPPING", "STOPPED", "FAILED", "ERROR"] = (
9090
Field(description="Current state of the endpoint")
9191
)
9292
created_at: datetime = Field(description="Timestamp when the endpoint was created")

0 commit comments

Comments
 (0)