fix(docs): small_model is not used for summarization (#1360)

This commit is contained in:
Timo Clasen
2025-08-06 21:03:14 +02:00
committed by GitHub
parent b179d08484
commit 54457e48bb
4 changed files with 4 additions and 6 deletions

View File

@@ -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(), model: z.string().describe("Model to use in the format of provider/model, eg anthropic/claude-2").optional(),
small_model: z small_model: z
.string() .string()
.describe( .describe("Small model to use for tasks like title generation in the format of provider/model")
"Small model to use for tasks like summarization and title generation in the format of provider/model",
)
.optional(), .optional(),
username: z username: z
.string() .string()

View File

@@ -74,7 +74,7 @@ type Config struct {
// Control sharing behavior:'manual' allows manual sharing via commands, 'auto' // Control sharing behavior:'manual' allows manual sharing via commands, 'auto'
// enables automatic sharing, 'disabled' disables all sharing // enables automatic sharing, 'disabled' disables all sharing
Share ConfigShare `json:"share"` Share 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/model // format of provider/model
SmallModel string `json:"small_model"` SmallModel string `json:"small_model"`
// Theme name to use for the interface // Theme name to use for the interface

View File

@@ -558,7 +558,7 @@ export type Config = {
*/ */
model?: string 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 small_model?: string
/** /**

View File

@@ -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). You can also configure [local models](/docs/models#local). [Learn more](/docs/models).