mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-07 17:28:53 +00:00
fix(opencode): scope agent variant to model (#11410)
This commit is contained in:
@@ -593,6 +593,10 @@ export namespace Config {
|
||||
export const Agent = z
|
||||
.object({
|
||||
model: z.string().optional(),
|
||||
variant: z
|
||||
.string()
|
||||
.optional()
|
||||
.describe("Default model variant for this agent (applies only when using the agent's configured model)."),
|
||||
temperature: z.number().optional(),
|
||||
top_p: z.number().optional(),
|
||||
prompt: z.string().optional(),
|
||||
@@ -624,6 +628,7 @@ export namespace Config {
|
||||
const knownKeys = new Set([
|
||||
"name",
|
||||
"model",
|
||||
"variant",
|
||||
"prompt",
|
||||
"description",
|
||||
"temperature",
|
||||
|
||||
Reference in New Issue
Block a user