Commit 6ca62b6
committed
fix: optimize reasoning formatting with targeted regex
- Only apply formatting when ** patterns are detected in the message
- Specifically target titles after sentence endings (. ! ?)
- Addresses performance concern by avoiding regex on every chunk
- Addresses specificity concern by targeting actual section headers
- Prevents false matches on inline bold text mid-sentence1 parent d7f7dda commit 6ca62b6
1 file changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1943 | 1943 | | |
1944 | 1944 | | |
1945 | 1945 | | |
1946 | | - | |
1947 | | - | |
1948 | | - | |
1949 | | - | |
1950 | | - | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
1951 | 1957 | | |
1952 | 1958 | | |
1953 | 1959 | | |
| |||
0 commit comments