Commit 6fdfe25
Fix: add retry logic to LiteLLM embedding for transient 500 errors (#396)
* Add retry logic to LiteLLM embedding calls for transient errors
The embedding path lacked num_retries, causing OpenAI 500 errors to
propagate as unhandled exceptions. The completion path already uses
num_retries=3; this aligns embedding to match.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix CI docker-build by adding PostgreSQL and Redis containers
The test was running the Morphik container standalone without any
database or cache, causing the entrypoint to timeout waiting for
PostgreSQL. Now spins up pgvector and Redis containers in a shared
Docker network, fixes the POSTGRES_URI scheme, and disables ColPali
to avoid loading ML models in CI.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix MORPHIK_EMBEDDING_API_DOMAIN validation error in CI docker-build
The Settings model expects a list[str] for MORPHIK_EMBEDDING_API_DOMAIN
but the CI test config provided a plain string. Fixed by:
1. Using a list in the CI test TOML config
2. Adding a defensive str-to-list coercion in config.py for robustness
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5b46a55 commit 6fdfe25
3 files changed
Lines changed: 53 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
206 | 243 | | |
207 | | - | |
208 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
209 | 247 | | |
210 | 248 | | |
211 | 249 | | |
| |||
235 | 273 | | |
236 | 274 | | |
237 | 275 | | |
| 276 | + | |
| 277 | + | |
238 | 278 | | |
239 | 279 | | |
240 | 280 | | |
| |||
247 | 287 | | |
248 | 288 | | |
249 | 289 | | |
| 290 | + | |
| 291 | + | |
250 | 292 | | |
251 | 293 | | |
252 | 294 | | |
253 | 295 | | |
254 | | - | |
| 296 | + | |
255 | 297 | | |
256 | 298 | | |
| 299 | + | |
| 300 | + | |
257 | 301 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
| 376 | + | |
375 | 377 | | |
376 | 378 | | |
377 | 379 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments