Repository navigation
Commit 62ebc94
fix(model-capabilities): collapse empty segments in Rust gpt-version-segment matcher
TS gptVersionSegmentMatches splits on /[^a-z0-9]+/ (collapsing), but the
emitted Rust twin split(|c| !c.is_ascii_alphanumeric()) yields empty strings
between adjacent delimiters. On an id like 'gpt--5' the arrays diverge:
TS ['gpt','5'] vs Rust ['gpt','','5']. The next-segment-starts-with-digit
lookahead then produces different results across languages (openai-responses
vs mlflow-chat fallback).
Add .filter(|s| !s.is_empty()) to the Rust split, matching the TS intent.
Add one normative corpus vector (databricks-gpt--5) that pins both
interpreters against a doubled-separator id, so CI will catch any future
regression across this boundary.
Co-authored-by: Will Pfleger <[email protected]>
Signed-off-by: Will Pfleger <[email protected]>1 parent 817b887 commit 62ebc94
3 files changed
Lines changed: 26 additions & 2 deletions
File tree
- crates/buzz-agent/src
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2028 | 2028 | | |
2029 | 2029 | | |
2030 | 2030 | | |
2031 | | - | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
2032 | 2035 | | |
2033 | 2036 | | |
2034 | 2037 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1240 | 1240 | | |
1241 | 1241 | | |
1242 | 1242 | | |
1243 | | - | |
| 1243 | + | |
1244 | 1244 | | |
1245 | 1245 | | |
1246 | 1246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1611 | 1611 | | |
1612 | 1612 | | |
1613 | 1613 | | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
1614 | 1635 | | |
1615 | 1636 | | |
0 commit comments