Commit 8244e51
[Feat] Support OpenAI Files API and refactor storage library to support local, s3, tos, and redis (for metadata) (#1583)
* Basic metadata server with new batchjob work with legacy local batch driver.
* Connect job_manager with batch API
* Finish e2e batch server test.
* lint-fix
* Review fix.
* Refactored storage by add general storage adapters optimized for batch job.
Original storage in batch folder now behavior as a group of helper that bridge raw data and batch request.
Local driver (request_proxy) has more logic to work with storage adapters.
* Fix local storage errors to make e2e tests pass.
* Provide a special implementation for small file multipart upload.
* Support redis as background and add pagination to storage list.
* Conditionally enabling redis tests.
* Adjust unit tests' folder.
* Lint fix
* bug fix
* Support metadata file API, including OpenAI files compatible get file and using Head method.
* Refactor multi-upload logic to unify small and large file multi-upload
* Format
* Fix test_path_traversal_protection in test_local_storage.py
* Fix generate_filename bug.
* Lint fix
Signed-off-by: Jingyuan Zhang <[email protected]>
Co-authored-by: Jingyuan Zhang <[email protected]>1 parent 0991af1 commit 8244e51
File tree
41 files changed
+8514
-905
lines changed- python/aibrix
- aibrix
- batch
- job_entity
- storage
- gpu_optimizer/load_monitor
- metadata
- api/v1
- setting
- storage
- tests
- batch
- storage
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+8514
-905
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
34 | | - | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
39 | | - | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| |||
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
70 | 85 | | |
71 | 86 | | |
72 | 87 | | |
| |||
84 | 99 | | |
85 | 100 | | |
86 | 101 | | |
87 | | - | |
| 102 | + | |
88 | 103 | | |
89 | 104 | | |
90 | 105 | | |
91 | 106 | | |
92 | 107 | | |
93 | 108 | | |
94 | | - | |
| 109 | + | |
95 | 110 | | |
96 | | - | |
| 111 | + | |
97 | 112 | | |
98 | | - | |
| 113 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
228 | 236 | | |
229 | 237 | | |
230 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
231 | 242 | | |
232 | 243 | | |
233 | 244 | | |
| |||
299 | 310 | | |
300 | 311 | | |
301 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
302 | 324 | | |
303 | 325 | | |
304 | 326 | | |
| |||
310 | 332 | | |
311 | 333 | | |
312 | 334 | | |
313 | | - | |
314 | | - | |
| 335 | + | |
| 336 | + | |
315 | 337 | | |
316 | 338 | | |
317 | 339 | | |
| |||
0 commit comments