Commit 684cd6f
fix(pydantic-ai): Convert ImageUrl.url to string before regex match
In Pydantic v2, ImageUrl.url is a Url object, not a string. Passing it
directly to re.match() raises TypeError at runtime. Convert to string
first, then reuse for both the regex match and the return value.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 592b100 commit 684cd6f
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
0 commit comments