Commit 17b903c
committed
fix(llm): respect LLM_PROXY_URL for OpenRouter models endpoint
- Modified get_available_models() to use proxy when LLM_PROXY_URL is configured
- Added URL construction to convert /messages proxy URL to /models endpoint
- Ensures model listing requests go through proxy for credit tracking
- Fixes bypass where model requests went directly to OpenRouter API1 parent bd8861c commit 17b903c
1 file changed
+21
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
550 | 549 | | |
551 | | - | |
552 | | - | |
553 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
554 | 570 | | |
555 | 571 | | |
556 | | - | |
557 | | - | |
558 | | - | |
| 572 | + | |
559 | 573 | | |
560 | 574 | | |
561 | 575 | | |
| |||
0 commit comments