Commit b1bb06d
committed
fix(sdk,server,leptos): fix dynamic image serving and markdown path rendering for generate_image tool calls
- Implement Axum agent server '/media' endpoint to serve workspace files
- Add absolute and relative image path rewriting in Leptos 'render_markdown' using '/media?path=...'
- Add helper 'extract_image_paths_from_result' to parse structured or fallback absolute paths
- Add unit tests in Leptos for markdown rewriting and image path extraction
- Fix local and wasm SDK tool call extraction for GENERATE_IMAGE
- Allow clippy::too_many_lines for extract_builtin_tool_call functions1 parent 5538997 commit b1bb06d
4 files changed
Lines changed: 427 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
809 | 864 | | |
810 | 865 | | |
811 | 866 | | |
| |||
1109 | 1164 | | |
1110 | 1165 | | |
1111 | 1166 | | |
| 1167 | + | |
1112 | 1168 | | |
1113 | 1169 | | |
1114 | 1170 | | |
| |||
0 commit comments