Skip to content

Commit ef4acf2

Browse files
feat(api): api update
1 parent 57f522f commit ef4acf2

File tree

7 files changed

+20
-1
lines changed

7 files changed

+20
-1
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
configured_endpoints: 44
2-
openapi_spec_hash: 0f1841fad65926e7ddfb22dd7a642b46
2+
openapi_spec_hash: dfccb5c181396678a22b9c079847889f
33
config_hash: 659f65b6ccf5612986f920f7f9abbcb5

src/codex/types/project_create_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ class ConfigEvalConfigCustomEvalsEvals(TypedDict, total=False):
5555
enabled: bool
5656
"""Allows the evaluation to be disabled without removing it"""
5757

58+
is_default: bool
59+
"""Whether the eval is a default, built-in eval or a custom eval"""
60+
5861
priority: Optional[int]
5962
"""
6063
Priority order for evals (lower number = higher priority) to determine primary

src/codex/types/project_list_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ class ProjectConfigEvalConfigCustomEvalsEvals(BaseModel):
4747
enabled: Optional[bool] = None
4848
"""Allows the evaluation to be disabled without removing it"""
4949

50+
is_default: Optional[bool] = None
51+
"""Whether the eval is a default, built-in eval or a custom eval"""
52+
5053
priority: Optional[int] = None
5154
"""
5255
Priority order for evals (lower number = higher priority) to determine primary

src/codex/types/project_retrieve_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ class ConfigEvalConfigCustomEvalsEvals(BaseModel):
4646
enabled: Optional[bool] = None
4747
"""Allows the evaluation to be disabled without removing it"""
4848

49+
is_default: Optional[bool] = None
50+
"""Whether the eval is a default, built-in eval or a custom eval"""
51+
4952
priority: Optional[int] = None
5053
"""
5154
Priority order for evals (lower number = higher priority) to determine primary

src/codex/types/project_return_schema.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ class ConfigEvalConfigCustomEvalsEvals(BaseModel):
4646
enabled: Optional[bool] = None
4747
"""Allows the evaluation to be disabled without removing it"""
4848

49+
is_default: Optional[bool] = None
50+
"""Whether the eval is a default, built-in eval or a custom eval"""
51+
4952
priority: Optional[int] = None
5053
"""
5154
Priority order for evals (lower number = higher priority) to determine primary

src/codex/types/project_update_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ class ConfigEvalConfigCustomEvalsEvals(TypedDict, total=False):
5353
enabled: bool
5454
"""Allows the evaluation to be disabled without removing it"""
5555

56+
is_default: bool
57+
"""Whether the eval is a default, built-in eval or a custom eval"""
58+
5659
priority: Optional[int]
5760
"""
5861
Priority order for evals (lower number = higher priority) to determine primary

tests/api_resources/test_projects.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def test_method_create_with_all_params(self, client: Codex) -> None:
5050
"name": "name",
5151
"context_identifier": "context_identifier",
5252
"enabled": True,
53+
"is_default": True,
5354
"priority": 0,
5455
"query_identifier": "query_identifier",
5556
"response_identifier": "response_identifier",
@@ -218,6 +219,7 @@ def test_method_update_with_all_params(self, client: Codex) -> None:
218219
"name": "name",
219220
"context_identifier": "context_identifier",
220221
"enabled": True,
222+
"is_default": True,
221223
"priority": 0,
222224
"query_identifier": "query_identifier",
223225
"response_identifier": "response_identifier",
@@ -684,6 +686,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCodex) ->
684686
"name": "name",
685687
"context_identifier": "context_identifier",
686688
"enabled": True,
689+
"is_default": True,
687690
"priority": 0,
688691
"query_identifier": "query_identifier",
689692
"response_identifier": "response_identifier",
@@ -852,6 +855,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCodex) ->
852855
"name": "name",
853856
"context_identifier": "context_identifier",
854857
"enabled": True,
858+
"is_default": True,
855859
"priority": 0,
856860
"query_identifier": "query_identifier",
857861
"response_identifier": "response_identifier",

0 commit comments

Comments
 (0)