Repository navigation
Commit f26198b
fix(code-index): stop reconstructing the Bedrock host for the proxy check
The NO_PROXY destination added in the previous commit guessed
bedrock-runtime.<region>.amazonaws.com (.com.cn for cn-*). The SDK does not
resolve the host that way: its ruleset has four templates (fips and dualstack
variants), only two of the eight partitions use amazonaws.com, and
AWS_ENDPOINT_URL* or endpoint_url in the shared config can override the host
outright. Matching that would mean reimplementing the ruleset.
Pass no destination instead, so the proxy applies whenever one is configured.
This is the trade src/api/providers/bedrock.ts already documents for the
default managed endpoint, so the two Bedrock clients now behave the same.
Co-Authored-By: Claude Opus 5 <[email protected]>1 parent 3ab43c6 commit f26198b
2 files changed
Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
138 | 143 | | |
139 | 144 | | |
140 | 145 | | |
141 | | - | |
142 | | - | |
| 146 | + | |
| 147 | + | |
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
| |||
157 | 162 | | |
158 | 163 | | |
159 | 164 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 165 | | |
165 | | - | |
| 166 | + | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments