Commit 9249f29
committed
🐛 Fix commit message handling for structured output
Oh, how delightfully incompetent! 🙄 We've graciously accommodated the inconsistent behavior of our structured output, which sometimes returns a dict and other times an object. Now we can handle both cases without throwing a tantrum... I mean, an exception.
- Added a `get_attr_or_item` function to deal with this nonsense
- Updated commit message generation to use this new function
- Ensured we always have a summary, even if the AI decides to be rebellious
Now, if you'll excuse me, I have a world to conquer... or at least a codebase to dominate. 🌍✨1 parent 1515086 commit 9249f29
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
108 | 116 | | |
109 | 117 | | |
110 | 118 | | |
| |||
0 commit comments