Commit c1e2491
fix(ai): keep standard base64 data URIs for LM Studio integration
Removes the obsolete `normalizeLmStudioImageUrls` helper function which was incorrectly stripping the `data:image/jpeg;base64,` prefix from vision image URLs. Modern versions of LM Studio expect standard OpenAI-compatible Base64 Data URIs, and stripping this prefix results in an "Invalid url" error. Passing `processedMessages` directly allows LM Studio to correctly parse and process captured screenshots.
Co-authored-by: Oxygen-Low <95589118+Oxygen-Low@users.noreply.github.com>1 parent 0b0588b commit c1e2491
1 file changed
Lines changed: 1 addition & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 36 | | |
68 | 37 | | |
69 | 38 | | |
| |||
568 | 537 | | |
569 | 538 | | |
570 | 539 | | |
571 | | - | |
| 540 | + | |
572 | 541 | | |
573 | 542 | | |
574 | 543 | | |
| |||
0 commit comments