Commit 7a18c29
committed
🐛 fix(agent): honor base URL overrides in Groq/OpenRouter validation + list local LLM providers in API keys settings
Two small follow-ups on the local-LLM registration work in the
preceding commit:
1. Groq and OpenRouter key validation were hard-coded to hit the
public hostnames (api.groq.com, openrouter.ai) even when
GROQ_BASE_URL or OPENROUTER_BASE_URL redirected the runtime chat
path at a local runner. That produced a false negative on the
settings page for operators pointing Groq at a local Ollama or
an internal corporate gateway. The validator now resolves the
validation URL from the same base URL resolution helper the Chat
method uses, so self-hosted and enterprise gateways validate
correctly.
2. The APIKeySettings modal's PROVIDER_INFO map and
providerToIconMap now include entries for the six local LLM
runners (ollama, llamacpp, localai, vllm, lm-studio, rhaiis).
The placeholder copy tells the operator which URL env var to
set, since local runners typically run unauthenticated. A
dedicated Base URL input field per provider is tracked as a
follow-up issue.
Signed-off-by: Andrew Anderson <[email protected]>1 parent 8f6500a commit 7a18c29
3 files changed
Lines changed: 81 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
42 | 65 | | |
43 | 66 | | |
44 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
525 | 526 | | |
526 | 527 | | |
527 | 528 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
532 | 545 | | |
533 | 546 | | |
534 | 547 | | |
535 | 548 | | |
536 | 549 | | |
537 | 550 | | |
538 | | - | |
| 551 | + | |
539 | 552 | | |
540 | 553 | | |
541 | 554 | | |
| |||
565 | 578 | | |
566 | 579 | | |
567 | 580 | | |
568 | | - | |
| 581 | + | |
569 | 582 | | |
570 | 583 | | |
571 | 584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
93 | 121 | | |
94 | 122 | | |
95 | 123 | | |
| |||
109 | 137 | | |
110 | 138 | | |
111 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
112 | 147 | | |
113 | 148 | | |
114 | 149 | | |
| |||
0 commit comments