Commit 17450c7
committed
feature #669 [Platform][Ollama] Better regex for qwen tool pattern (sonnymilton)
This PR was merged into the main branch.
Discussion
----------
[Platform][Ollama] Better regex for qwen tool pattern
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes<!-- please update src/**/CHANGELOG.md files -->
| Docs? | yes/no <!-- required for new features -->
| Issues | - <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
The current regex for QWEN models does not cover model size notation like `qwen3:32b` or `qwen3-coder:32b`.
I changed the regular expression to support notations with model sizes.
Commits
-------
f8e328b1 [Platform][OLLAMA] Update tool pattern regex for qwen to support models with sizeFile tree
2 files changed
+5
-1
lines changed- src/Bridge/Ollama
- tests/Bridge/Ollama
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
0 commit comments