mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
docs: both api keys, example model gpt-5.4-nano
This commit is contained in:
1 parent
3ca0e9a5b9
commit
ede495d935
3 files changed
+24
-19
No files matched your search
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user