docs: both api keys, example model gpt-5.4-nano

This commit is contained in:
pj committed 2026-06-12 10:52:14 +05:30
1 parent 3ca0e9a5b9
commit ede495d935
3 files changed
+24 -19

No files matched your search

+5 -4
View File
@@ -35,10 +35,11 @@ export function actions(generator: () => Action[]): GeneratorNode {
}
// llm selects the LLM action backend: instead of the seeded picker drawing a
// random candidate, Go drives an OpenRouter model that chooses which candidate
// to act on from the screenshot + the candidate list. The returned marker is
// inert on the JS picker (pick.ts walks it to null); Go reads its config.model
// off globalThis.actions. API key comes from OPENROUTER_API_KEY.
// random candidate, Go drives an OpenAI-compatible model that chooses which
// candidate to act on from the screenshot + the candidate list. The returned
// marker is inert on the JS picker (pick.ts walks it to null); Go reads its
// config.model off globalThis.actions. API key comes from OPENROUTER_API_KEY
// (OpenRouter) or OPENAI_API_KEY (OpenAI); OpenRouter wins when both are set.
export function llm(config: { model: string }): GeneratorNode {
return { kind: "llm", config };
}