From 8883c18817a4542dd728de3129ed0006318ca554 Mon Sep 17 00:00:00 2001 From: pelikhan Date: Fri, 13 Dec 2024 08:36:46 -0800 Subject: [PATCH] =?UTF-8?q?feat:=20add=20reasoning=20model=20support=20to?= =?UTF-8?q?=20NodeHost=20=F0=9F=8C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/content/docs/reference/scripts/model-aliases.mdx | 1 + packages/cli/src/nodehost.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/src/content/docs/reference/scripts/model-aliases.mdx b/docs/src/content/docs/reference/scripts/model-aliases.mdx index d3ccae4062..19966324f2 100644 --- a/docs/src/content/docs/reference/scripts/model-aliases.mdx +++ b/docs/src/content/docs/reference/scripts/model-aliases.mdx @@ -84,5 +84,6 @@ By default, GenAIScript supports the following model aliases: The following aliases are also set so that you can override LLMs used by GenAIScript itself. +- `reasoning`: `large`. In the future, `o1` like models. - `agent`: `large`. Model used by the Agent LLM. - `memory`: `small`. Moel used by the agent short term memory. diff --git a/packages/cli/src/nodehost.ts b/packages/cli/src/nodehost.ts index ca7fd552e2..8bafb2c435 100644 --- a/packages/cli/src/nodehost.ts +++ b/packages/cli/src/nodehost.ts @@ -179,6 +179,7 @@ export class NodeHost implements RuntimeHost { small: { model: DEFAULT_SMALL_MODEL, source: "default" }, vision: { model: DEFAULT_VISION_MODEL, source: "default" }, embeddings: { model: DEFAULT_EMBEDDINGS_MODEL, source: "default" }, + reasoning: { model: LARGE_MODEL_ID, source: "default" }, agent: { model: LARGE_MODEL_ID, source: "default" }, memory: { model: SMALL_MODEL_ID, source: "default" }, },