Commit 86dccb6
authored
fix: open in llm dropdown (#23145)
## Description
- The original implementation was trying to pass the entire content of
the documentation page through the URL parameters
- Web servers/browsers have limits on URLs
- Instead of passing the whole page as a URL parameter, the fix prompts
Claude with a reference to the markdown file, putting the fetching and
parsing onto the LLM, not the browser (which can't handle long
files/pages)
- Removing ChatGPT option, as OpenAI appears to no longer support
reading RAW markdown files (I tested this using our site and several
other docs sites)
## Related issues or tickets
Fixes #23144
## Reviews
- [ ] Editorial review
## Testing
Claude
<img width="893" height="711" alt="image"
src="https://github.com/user-attachments/assets/78fdafcd-4d7a-465e-b19d-a7f9c3eed326"
/>1 parent 0cb6f5e commit 86dccb6
2 files changed
+8
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
196 | | - | |
197 | 195 | | |
198 | 196 | | |
199 | 197 | | |
| |||
239 | 237 | | |
240 | 238 | | |
241 | 239 | | |
242 | | - | |
243 | 240 | | |
244 | | - | |
245 | 241 | | |
246 | 242 | | |
247 | 243 | | |
| |||
266 | 262 | | |
267 | 263 | | |
268 | 264 | | |
269 | | - | |
270 | 265 | | |
271 | 266 | | |
272 | 267 | | |
| |||
554 | 549 | | |
555 | 550 | | |
556 | 551 | | |
557 | | - | |
558 | 552 | | |
559 | 553 | | |
560 | 554 | | |
| |||
579 | 573 | | |
580 | 574 | | |
581 | 575 | | |
582 | | - | |
583 | 576 | | |
584 | 577 | | |
585 | 578 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 60 | + | |
73 | 61 | | |
74 | 62 | | |
75 | 63 | | |
| |||
82 | 70 | | |
83 | 71 | | |
84 | 72 | | |
| 73 | + | |
85 | 74 | | |
86 | 75 | | |
87 | 76 | | |
88 | 77 | | |
89 | | - | |
| 78 | + | |
90 | 79 | | |
91 | 80 | | |
92 | 81 | | |
| |||
131 | 120 | | |
132 | 121 | | |
133 | 122 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | 123 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
158 | 129 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 130 | | |
0 commit comments