librechat-sandbox: per-member image billing restored; system key is safety-net only
This commit is contained in:
1 parent
fde5d143c5
commit
1f3f0ce9b8
1 file changed
+8
-8
@@ -49,14 +49,14 @@ summary.
|
|||||||
|
|
||||||
## Image generation (two member-facing paths)
|
## Image generation (two member-facing paths)
|
||||||
|
|
||||||
1. **MCP tool (default, no key ever, no gate)**: the `inference-image` MCP
|
1. **MCP tool (default, no key ever)**: the `inference-image` MCP server
|
||||||
server exposes `generate_image` in the composer's **+** palette — no agent
|
exposes `generate_image` in the composer's **+** palette — no agent setup,
|
||||||
setup, no key prompt. Images bill to the co-op SYSTEM key
|
no key prompt. Per-member billing via `customUserVars.IC_API_KEY` (seeded
|
||||||
(`SYSTEM_IMAGE_KEY`, LiteLLM alias `system-image-fallback`, $5/30d,
|
from the portal) + `env: IC_API_KEY: "{{IC_API_KEY}}"`; a system-key
|
||||||
`regolo/qwen-image` only). No `customUserVars` gate — it made the credential
|
fallback (`system-image-fallback`, $5/30d) covers the rare empty-value
|
||||||
REQUIRED and blocked the whole server for any not-yet-seeded member
|
case. The `customUserVars` gate blocks a not-yet-seeded member until the
|
||||||
(first-login gap) before the fallback could run, and v0.8.8 has no optional
|
next sync (≤10 min) — accepted as a short delay over billing everything
|
||||||
flag. Per-member image billing is therefore deferred.
|
to the system account.
|
||||||
2. **Agent tool**: LibreChat's built-in "OpenAI Image Tools"
|
2. **Agent tool**: LibreChat's built-in "OpenAI Image Tools"
|
||||||
(`IMAGE_GEN_OAI_BASEURL`/`IMAGE_GEN_OAI_MODEL` → gateway; members paste
|
(`IMAGE_GEN_OAI_BASEURL`/`IMAGE_GEN_OAI_MODEL` → gateway; members paste
|
||||||
their own key — v0.8.8 limitation).
|
their own key — v0.8.8 limitation).
|
||||||
|
|||||||
Reference in new issue
Block a user