The open source coding agent.
TypeScript
fix(docs): small_model is not used for summarization (#1360)
Timo Clasen54457e48bba0
diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.tsindex e26d879af41..3a9ab97237e 100644--- a/packages/opencode/src/config/config.ts+++ b/packages/opencode/src/config/config.ts@@ -249,9 +249,7 @@ export namespace Config {model: z.string().describe("Model to use in the format of provider/model, eg anthropic/claude-2").optional(),small_model: z.string()- .describe(- "Small model to use for tasks like summarization and title generation in the format of provider/model",- )+ .describe("Small model to use for tasks like title generation in the format of provider/model").optional(),username: z.string()diff --git a/packages/sdk/go/config.go b/packages/sdk/go/config.goindex 77b1b760246..911bb2a3022 100644--- a/packages/sdk/go/config.go+++ b/packages/sdk/go/config.go@@ -74,7 +74,7 @@ type Config struct {// Control sharing behavior:'manual' allows manual sharing via commands, 'auto'// enables automatic sharing, 'disabled' disables all sharingShare ConfigShare `json:"share"`- // Small model to use for tasks like summarization and title generation in the+ // Small model to use for tasks like title generation in the// format of provider/modelSmallModel string `json:"small_model"`// Theme name to use for the interfacediff --git a/packages/sdk/js/src/gen/types.gen.ts b/packages/sdk/js/src/gen/types.gen.tsindex 74fa1a4fb3d..79224562d74 100644--- a/packages/sdk/js/src/gen/types.gen.ts+++ b/packages/sdk/js/src/gen/types.gen.ts@@ -558,7 +558,7 @@ export type Config = {*/model?: string/**- * Small model to use for tasks like summarization and title generation in the format of provider/model+ * Small model to use for tasks like title generation in the format of provider/model*/small_model?: string/**diff --git a/packages/web/src/content/docs/docs/config.mdx b/packages/web/src/content/docs/docs/config.mdxindex b768d73e45a..ec885d2ba94 100644--- a/packages/web/src/content/docs/docs/config.mdx+++ b/packages/web/src/content/docs/docs/config.mdx@@ -90,7 +90,7 @@ You can configure the providers and models you want to use in your opencode conf}```-The `small_model` option configures a separate model for lightweight tasks like summarization and title generation. By default, opencode tries to use a cheaper model if one is available from your provider, otherwise it falls back to your main model.+The `small_model` option configures a separate model for lightweight tasks like title generation. By default, opencode tries to use a cheaper model if one is available from your provider, otherwise it falls back to your main model.You can also configure [local models](/docs/models#local). [Learn more](/docs/models).