Repository navigation
Replies: 2 comments
|
Two different code paths answer that button, and the "whitelist" you are seeing is most likely not a filter applied to the endpoint's reply β it is a different source answering instead of it. Where the button actually goesThe action is // packages/llm/llm-pi-ai/src/discovery.ts:273-286
// A catalog route already has its answer, and a better one: the installed
// entries carry context windows and output caps no listing endpoint reports.
if (request.provider !== undefined) {
const installed = catalogModels(request.provider)
if (installed.size > 0) {
return [...installed.values()].map(...) // no fetch() on this line of the function
}
}So for a route id that the installed pi-ai catalog ships, the reply is the catalog and no HTTP request is made at all. Two tests pin exactly that: Only when the id is one pi-ai does not ship does it build a URL and fetch β Why it is designed this wayThe module docstring states the intent in its first lines:
So the feature is deliberately not "refresh the provider's list"; it is "propose candidate rows for the draft I am editing". A refresh would contradict the second sentence: the config layer is the only thing deciding what a route serves, so a fetched list can never change behaviour by itself. And "dsh does not actively update the model list"Correct, and by construction: the catalog is a build artifact of the installed pi-ai release, not a live service. Two neighbouring facts worth knowing:
Which case are you hitting?One command settles it β is your provider id a catalog id? node -e "import('@earendil-works/pi-ai/providers/all').then(m => console.log(m.getBuiltinProviders().join('\n')))"
Honest limitation, and a way around it that needs no core changeBecause the catalog check precedes the baseURL check, a route named after a catalog provider can never be interrogated over the wire through this button β even when you point it at your own Two seams already exist for the "show me what my endpoint advertises, next to the catalog answer" half, and neither needs a core edit:
One boundary I would have to clear first, and it is a real one: omitting If the maintainers think the endpoint's own list belongs in-core, the smallest shape is an additional candidate set when a draft carries both |
|
The behaviour described here now has a plugin form: What it does. It adds an Endpoint listing panel to the provider cards of the Why this is a second reading and not a filter setting. The list a route id produces is not the endpoint's list filtered; it is a different source answering. Install: then restart Published for dsh |
Uh oh!
There was an error while loading. Please reload this page.
ε¦ι’οΌdshεδΈη§―ζζ΄ζ°ζ¨‘εε葨οΌδ½ζ―ε¨βθ·εε―η¨ζ¨‘εβεθ½δΈοΌεε―Ήθ·ε樑εζ₯ε£θΏεηζ₯ε£θΏθ‘η½εεθΏζ»€οΌθΏζ―εΊδΊδ»δΉθθοΌ
All reactions