Commit f0b18239
Changed files (5)
.github/workflows/ci.yml
@@ -14,7 +14,7 @@ jobs:
if: github.repository == 'openai/openai-python'
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install Rye
run: |
src/openai/types/beta/threads/__init__.py
@@ -3,6 +3,7 @@
from __future__ import annotations
from .run import Run as Run
+from .run_status import RunStatus as RunStatus
from .thread_message import ThreadMessage as ThreadMessage
from .run_list_params import RunListParams as RunListParams
from .run_create_params import RunCreateParams as RunCreateParams
src/openai/types/beta/threads/run.py
@@ -5,6 +5,7 @@ from typing_extensions import Literal
from ...shared import FunctionDefinition
from ...._models import BaseModel
+from .run_status import RunStatus
from .required_action_function_tool_call import RequiredActionFunctionToolCall
__all__ = [
@@ -142,9 +143,7 @@ class Run(BaseModel):
started_at: Optional[int] = None
"""The Unix timestamp (in seconds) for when the run was started."""
- status: Literal[
- "queued", "in_progress", "requires_action", "cancelling", "cancelled", "failed", "completed", "expired"
- ]
+ status: RunStatus
"""
The status of the run, which can be either `queued`, `in_progress`,
`requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, or
src/openai/types/beta/threads/run_status.py
@@ -0,0 +1,9 @@
+# File generated from our OpenAPI spec by Stainless.
+
+from typing_extensions import Literal
+
+__all__ = ["RunStatus"]
+
+RunStatus = Literal[
+ "queued", "in_progress", "requires_action", "cancelling", "cancelled", "failed", "completed", "expired"
+]
api.md
@@ -224,7 +224,7 @@ Methods:
Types:
```python
-from openai.types.beta.threads import RequiredActionFunctionToolCall, Run
+from openai.types.beta.threads import RequiredActionFunctionToolCall, Run, RunStatus
```
Methods: