Commit d965927
committed
feat(api): return better error message on missing embedding
I had a setup where my embedding model didn't reply properly
and had a really hard time figuring out where
"NoneType object is not iterable" comes from.
With this error message, it should be easier to find the problem.1 parent fa8e1cb commit d965927
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
231 | 237 | | |
232 | 238 | | |
233 | 239 | | |
| |||
0 commit comments