Commit 5460bf2
feat: add reasoning and service_tier params to Codex provider (#365)
* feat: add reasoning and service_tier params to Codex provider
Add support for `reasoning` (effort) and `service_tier` parameters in
Codex requests, with provider-level overrides that force these values
for all requests routed through a given provider.
- Add `ServiceTier` field to CodexRequest and OpenAIRequest types
- Forward `service_tier` through codex↔openai converters
- Forward `reasoning.effort` to Claude `output_config` in codex→claude
- Add `BaseURL`, `Reasoning`, `ServiceTier` to ProviderConfigCodex
- Apply provider overrides in both codex and cliproxyapi_codex adapters
- Add dropdown selects in provider UI (reasoning / service_tier)
- Add E2E test with mock Codex server (5 scenarios)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: resolve TS18047 'user' possibly null in admin-route
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: address CodeRabbit review feedback
- Guard against empty service_tier in openai_to_codex converter
- Add headed mode script for codex test
- Use i18n for dropdown option labels
- Add cleanup of test providers/routes after E2E tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Remove isAuthenticated from AdminRoute
Removed isAuthenticated from AdminRoute component.
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: ymkiux <44744442+ymkiux@users.noreply.github.com>1 parent 4fb81ec commit 5460bf2
File tree
15 files changed
+719
-15
lines changed- internal
- adapter/provider
- cliproxyapi_codex
- codex
- converter
- domain
- tests/e2e/playwright
- web/src
- components/auth
- lib/transport
- locales
- pages/providers/components
15 files changed
+719
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
215 | 229 | | |
216 | 230 | | |
217 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
124 | 137 | | |
125 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
126 | 143 | | |
127 | 144 | | |
128 | | - | |
| 145 | + | |
129 | 146 | | |
130 | 147 | | |
131 | 148 | | |
| |||
141 | 158 | | |
142 | 159 | | |
143 | 160 | | |
144 | | - | |
145 | 161 | | |
146 | 162 | | |
147 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
901 | 904 | | |
902 | 905 | | |
903 | 906 | | |
| 907 | + | |
904 | 908 | | |
905 | 909 | | |
906 | 910 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
151 | 162 | | |
152 | 163 | | |
153 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
0 commit comments