Repository navigation
Replies: 1 comment
|
Strong +1 on this, and wanted to raise a closely related case that the current proposal leaves uncovered: genuinely free self-hosted servers (vLLM, Ollama, llama.cpp on your own hardware). When running Nod against a self-hosted vLLM server over an OpenAI-compatible connection, automatic preparation is blocked with:
Right now there is no UI toggle, CLI flag, or Suggested addition to this proposalKeep today's safe default (an unconfigured
Extra friction with the current hybrid workaroundAs noted under Alternatives considered, |
Uh oh!
There was an error while loading. Please reload this page.
An OpenAI-compatible connection may point to a gateway for paid models, such as LiteLLM, a pool of ChatGPT/Codex subscriptions, or a hosted service such as Groq or Together AI. The owner usually knows what those models cost. Nod cannot retrieve prices from the server, so it currently treats every model on a compatible connection as unpriced and never uses it for automatic preparation.
What happens today
On main (8f679e9):
src/providers/pi/models.ts:408).boundedPrice()treats all-zero prices as unknown (src/shared/models.ts:160). This is the right default because zero usually represents a missing price.unpricedPreparationModel()names the model, and the observer, background inbox polling and background email checks do not start (src/server/models.ts:731,src/server/composition.ts:1348).An owner whose gateway provides paid models therefore gets no automatic preparation, monthly limit or check-ins for that connection. Any limit enforced by the gateway is the only remaining guard.
Proposal
Add optional per-model prices to compatible connections while keeping the rule from #990 that automatic preparation never makes an unpriced request.
costin the catalog instead of zeros.boundedPrice(), the per-request reservation andunpricedPreparationModel()can then work unchanged.OPENAI_COMPATIBLE_BASE_URL. A JSON map from model IDs to prices would be sufficient.Maintainers would need to decide how owner-set prices affect limits. They could count toward the monthly limit and check-ins, like API-key usage, or only toward the preparation allowance and check-ins, like ChatGPT plan usage. Both options support automatic preparation. Treating them like API-key usage seems more natural for a gateway that provides paid APIs.
Alternatives considered
Related: #923 proposes owner-set
compatsettings for compatible models.All reactions