Commit e11029e
authored
feat: refactor error handling and output formatting (#158)
- Remove unused "fmt" import from commit.go
- Change error handling to display a message in red without exiting the function
- Add a condition to set `summaryPrix` based on `msg.Content` if no tool calls are found in the message
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>1 parent 3ea1edf commit e11029e
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
218 | 217 | | |
219 | 218 | | |
220 | 219 | | |
221 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
222 | 225 | | |
223 | 226 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
0 commit comments