Resolve the OpenRouter key from OpenBao before the environment
auto tries platform/suppliers/openrouter/llm-connect, then the live activity-core workload lane, then OPENROUTER_API_KEY. A denied token falls back to the environment. LLM_CONNECT_KEY_SOURCE selects env or openbao alone. Assistant: grok Assistant-Session: 01a11ab6-1534-7d63-8606-662b92a80ed6
This commit is contained in:
parent
965c4b3386
commit
e1ca67e509
4 changed files with 173 additions and 11 deletions
|
|
@ -39,8 +39,12 @@ requests share one gate for the life of the server process.
|
|||
OpenRouter only, via `POST {api_base}/images` (default
|
||||
`https://openrouter.ai/api/v1/images`). The request sends `n=1`,
|
||||
`aspect_ratio=1:1`, an explicit pixel `size`, and `output_format`. The key
|
||||
comes from the explicit argument, `OPENROUTER_API_KEY`, or
|
||||
`apikey-openrouter.txt`. Only `b64_json` is accepted. A URL in the response
|
||||
comes from the explicit argument, OpenBao
|
||||
(`platform/suppliers/openrouter/llm-connect`, then the live workload lane
|
||||
`platform/workloads/activity-core/llm-connect/llm-connect-provider-secrets`),
|
||||
`OPENROUTER_API_KEY`, or `apikey-openrouter.txt`. Set
|
||||
`LLM_CONNECT_KEY_SOURCE=env` to skip OpenBao, or `openbao` to use it alone.
|
||||
Only `b64_json` is accepted. A URL in the response
|
||||
is not fetched.
|
||||
|
||||
There is no default image model on `image render`. `image render-hall` renders
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue