Commit 9054ca9
authored
🆔 fix: Atomic File Dedupe, Bedrock Tokens Fix, and Allowed MIME Types (#11675)
* feat: Add support for Apache Parquet MIME types
- Introduced 'application/x-parquet' to the full MIME types list and code interpreter MIME types list.
- Updated application MIME types regex to include 'x-parquet' and 'vnd.apache.parquet'.
- Added mapping for '.parquet' files to 'application/x-parquet' in code type mapping, enhancing file format support.
* feat: Implement atomic file claiming for code execution outputs
- Added a new `claimCodeFile` function to atomically claim a file_id for code execution outputs, preventing duplicates by using a compound key of filename and conversationId.
- Updated `processCodeOutput` to utilize the new claiming mechanism, ensuring that concurrent calls for the same filename converge on a single record.
- Refactored related tests to validate the new atomic claiming behavior and its impact on file usage tracking and versioning.
* fix: Update image file handling to use cache-busting filepath
- Modified the `processCodeOutput` function to generate a cache-busting filepath for updated image files, improving browser caching behavior.
- Adjusted related tests to reflect the change from versioned filenames to cache-busted filepaths, ensuring accurate validation of image updates.
* fix: Update step handler to prevent undefined content for non-tool call types
- Modified the condition in useStepHandler to ensure that undefined content is only assigned for specific content types, enhancing the robustness of content handling.
* fix: Update bedrockOutputParser to handle maxTokens for adaptive models
- Modified the bedrockOutputParser logic to ensure that maxTokens is not set for adaptive models when neither maxTokens nor maxOutputTokens are provided, improving the handling of adaptive thinking configurations.
- Updated related tests to reflect these changes, ensuring accurate validation of the output for adaptive models.
* chore: Update @librechat/agents to version 3.1.38 in package.json and package-lock.json
* fix: Enhance file claiming and error handling in code processing
- Updated the `processCodeOutput` function to use a consistent file ID for claiming files, preventing duplicates and improving concurrency handling.
- Refactored the `createFileMethods` to include error handling for failed file claims, ensuring robust behavior when claiming files for conversations.
- These changes enhance the reliability of file management in the application.
* fix: Update adaptive thinking test for Opus 4.6 model
- Modified the test for configuring adaptive thinking to reflect that no default maxTokens should be set for the Opus 4.6 model.
- Updated assertions to ensure that maxTokens is undefined, aligning with the expected behavior for adaptive models.1 parent a771d70 commit 9054ca9
File tree
12 files changed
+130
-126
lines changed- api
- server/services/Files/Code
- client/src/hooks/SSE
- packages
- api
- src/endpoints/bedrock
- data-provider
- specs
- src
- data-schemas/src
- methods
- schema
12 files changed
+130
-126
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 59 | | |
104 | 60 | | |
105 | 61 | | |
| |||
170 | 126 | | |
171 | 127 | | |
172 | 128 | | |
173 | | - | |
174 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
175 | 132 | | |
176 | | - | |
177 | | - | |
178 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
179 | 142 | | |
180 | 143 | | |
181 | 144 | | |
| |||
184 | 147 | | |
185 | 148 | | |
186 | 149 | | |
| 150 | + | |
187 | 151 | | |
| 152 | + | |
188 | 153 | | |
189 | 154 | | |
| 155 | + | |
190 | 156 | | |
191 | 157 | | |
192 | | - | |
| 158 | + | |
193 | 159 | | |
194 | 160 | | |
195 | 161 | | |
196 | 162 | | |
197 | | - | |
| 163 | + | |
198 | 164 | | |
199 | 165 | | |
200 | 166 | | |
201 | 167 | | |
202 | 168 | | |
203 | | - | |
| 169 | + | |
204 | 170 | | |
205 | 171 | | |
206 | 172 | | |
207 | | - | |
208 | 173 | | |
209 | 174 | | |
210 | 175 | | |
| |||
221 | 186 | | |
222 | 187 | | |
223 | 188 | | |
224 | | - | |
225 | 189 | | |
226 | 190 | | |
227 | 191 | | |
| |||
258 | 222 | | |
259 | 223 | | |
260 | 224 | | |
261 | | - | |
262 | | - | |
| 225 | + | |
| 226 | + | |
263 | 227 | | |
264 | 228 | | |
265 | | - | |
| 229 | + | |
266 | 230 | | |
267 | 231 | | |
268 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
122 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
| |||
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
131 | | - | |
132 | | - | |
133 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
137 | 143 | | |
138 | | - | |
139 | | - | |
| 144 | + | |
140 | 145 | | |
141 | 146 | | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
156 | 157 | | |
157 | | - | |
158 | 158 | | |
159 | | - | |
160 | 159 | | |
161 | | - | |
162 | 160 | | |
163 | 161 | | |
164 | 162 | | |
165 | 163 | | |
166 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | | - | |
174 | 174 | | |
175 | | - | |
176 | 175 | | |
177 | 176 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 177 | | |
193 | 178 | | |
194 | 179 | | |
| |||
203 | 188 | | |
204 | 189 | | |
205 | 190 | | |
206 | | - | |
207 | 191 | | |
208 | 192 | | |
209 | 193 | | |
| |||
218 | 202 | | |
219 | 203 | | |
220 | 204 | | |
221 | | - | |
| 205 | + | |
222 | 206 | | |
223 | | - | |
| 207 | + | |
224 | 208 | | |
225 | 209 | | |
226 | 210 | | |
227 | | - | |
228 | | - | |
| 211 | + | |
229 | 212 | | |
230 | 213 | | |
231 | 214 | | |
232 | | - | |
| 215 | + | |
233 | 216 | | |
234 | 217 | | |
235 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
236 | 225 | | |
237 | 226 | | |
| 227 | + | |
238 | 228 | | |
239 | 229 | | |
240 | 230 | | |
| |||
335 | 325 | | |
336 | 326 | | |
337 | 327 | | |
338 | | - | |
339 | 328 | | |
340 | 329 | | |
341 | 330 | | |
| |||
345 | 334 | | |
346 | 335 | | |
347 | 336 | | |
348 | | - | |
349 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
350 | 342 | | |
351 | 343 | | |
352 | 344 | | |
| |||
356 | 348 | | |
357 | 349 | | |
358 | 350 | | |
359 | | - | |
360 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
361 | 355 | | |
362 | 356 | | |
363 | 357 | | |
364 | 358 | | |
365 | 359 | | |
366 | | - | |
367 | 360 | | |
368 | 361 | | |
369 | 362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments