Commit f6ccb98
fix(inference_endpoints): use GET
* fix(inference_endpoints): use GET /health instead of GET / to check status
* misc(quality): format
* feat(inference_endpoints): use healthRoute from the API to retrieve the path where to query endpoint status
* feat(inference_endpoints): missing health_url in classdef
* feat(inference_endpoints): wrong variable name ... 🤦🏻♂️
* feat(inference_endpoints): need coffee at this stage.
* feat(inference_endpoints): fix remaining tests
* feat(inference_endpoints): address comments use health_route and compute _health_url
* feat(inference_endpoints): move _health_url computation when endpoint is running and we have an actual url
* Apply suggestions from code review
* add test
* Update src/huggingface_hub/_inference_endpoints.py
---------
Co-authored-by: Lucain <[email protected]>
Co-authored-by: Lucain Pouget <[email protected]>healthRoute instead of GET / to check status (#3165)1 parent 3734b64 commit f6ccb98
File tree
3 files changed
+18
-1
lines changed- src/huggingface_hub
- tests
3 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
223 | | - | |
| 224 | + | |
| 225 | + | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| |||
400 | 402 | | |
401 | 403 | | |
402 | 404 | | |
| 405 | + | |
403 | 406 | | |
404 | 407 | | |
405 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4521 | 4521 | | |
4522 | 4522 | | |
4523 | 4523 | | |
| 4524 | + | |
4524 | 4525 | | |
4525 | 4526 | | |
4526 | 4527 | | |
| |||
4650 | 4651 | | |
4651 | 4652 | | |
4652 | 4653 | | |
| 4654 | + | |
4653 | 4655 | | |
4654 | 4656 | | |
4655 | 4657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| 165 | + | |
161 | 166 | | |
162 | 167 | | |
163 | 168 | | |
| |||
197 | 202 | | |
198 | 203 | | |
199 | 204 | | |
| 205 | + | |
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
| |||
218 | 224 | | |
219 | 225 | | |
220 | 226 | | |
| 227 | + | |
221 | 228 | | |
222 | 229 | | |
223 | 230 | | |
| |||
245 | 252 | | |
246 | 253 | | |
247 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
248 | 260 | | |
249 | 261 | | |
250 | 262 | | |
| |||
0 commit comments