Skip to content

Commit 8489bc7

Browse files
feat(api): api update
1 parent b3878c1 commit 8489bc7

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
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: a8387ccffe9a593cea310f37eb64ea0e
2+
openapi_spec_hash: ded11525d5fce121fac9be1f434c42af
33
config_hash: 659f65b6ccf5612986f920f7f9abbcb5

src/codex/types/project_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ class Config(TypedDict, total=False):
305305

306306
llm_matching_model: str
307307

308-
llm_matching_quality_preset: str
308+
llm_matching_quality_preset: Literal["best", "high", "medium", "low", "base"]
309309

310310
lower_llm_match_distance_threshold: float
311311

src/codex/types/project_list_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class ProjectConfig(BaseModel):
297297

298298
llm_matching_model: Optional[str] = None
299299

300-
llm_matching_quality_preset: Optional[str] = None
300+
llm_matching_quality_preset: Optional[Literal["best", "high", "medium", "low", "base"]] = None
301301

302302
lower_llm_match_distance_threshold: Optional[float] = None
303303

src/codex/types/project_retrieve_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class Config(BaseModel):
296296

297297
llm_matching_model: Optional[str] = None
298298

299-
llm_matching_quality_preset: Optional[str] = None
299+
llm_matching_quality_preset: Optional[Literal["best", "high", "medium", "low", "base"]] = None
300300

301301
lower_llm_match_distance_threshold: Optional[float] = None
302302

src/codex/types/project_return_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class Config(BaseModel):
296296

297297
llm_matching_model: Optional[str] = None
298298

299-
llm_matching_quality_preset: Optional[str] = None
299+
llm_matching_quality_preset: Optional[Literal["best", "high", "medium", "low", "base"]] = None
300300

301301
lower_llm_match_distance_threshold: Optional[float] = None
302302

src/codex/types/project_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class Config(TypedDict, total=False):
303303

304304
llm_matching_model: str
305305

306-
llm_matching_quality_preset: str
306+
llm_matching_quality_preset: Literal["best", "high", "medium", "low", "base"]
307307

308308
lower_llm_match_distance_threshold: float
309309

tests/api_resources/test_projects.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_method_create_with_all_params(self, client: Codex) -> None:
109109
},
110110
},
111111
"llm_matching_model": "llm_matching_model",
112-
"llm_matching_quality_preset": "llm_matching_quality_preset",
112+
"llm_matching_quality_preset": "best",
113113
"lower_llm_match_distance_threshold": 0,
114114
"max_distance": 0,
115115
"query_use_llm_matching": True,
@@ -278,7 +278,7 @@ def test_method_update_with_all_params(self, client: Codex) -> None:
278278
},
279279
},
280280
"llm_matching_model": "llm_matching_model",
281-
"llm_matching_quality_preset": "llm_matching_quality_preset",
281+
"llm_matching_quality_preset": "best",
282282
"lower_llm_match_distance_threshold": 0,
283283
"max_distance": 0,
284284
"query_use_llm_matching": True,
@@ -745,7 +745,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCodex) ->
745745
},
746746
},
747747
"llm_matching_model": "llm_matching_model",
748-
"llm_matching_quality_preset": "llm_matching_quality_preset",
748+
"llm_matching_quality_preset": "best",
749749
"lower_llm_match_distance_threshold": 0,
750750
"max_distance": 0,
751751
"query_use_llm_matching": True,
@@ -914,7 +914,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCodex) ->
914914
},
915915
},
916916
"llm_matching_model": "llm_matching_model",
917-
"llm_matching_quality_preset": "llm_matching_quality_preset",
917+
"llm_matching_quality_preset": "best",
918918
"lower_llm_match_distance_threshold": 0,
919919
"max_distance": 0,
920920
"query_use_llm_matching": True,

0 commit comments

Comments
 (0)