mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
fix: ensure 'name' isnt being sent in request body for custom agent
This commit is contained in:
parent
bb09df0c77
commit
c7a2c737e8
@ -188,7 +188,6 @@ export namespace Agent {
|
||||
item.topP = value.top_p ?? item.topP
|
||||
item.mode = value.mode ?? item.mode
|
||||
item.color = value.color ?? item.color
|
||||
item.name = value.options?.name ?? item.name
|
||||
item.steps = value.steps ?? item.steps
|
||||
item.options = mergeDeep(item.options, value.options ?? {})
|
||||
item.permission = PermissionNext.merge(item.permission, PermissionNext.fromConfig(value.permission ?? {}))
|
||||
|
||||
@ -483,6 +483,7 @@ export namespace Config {
|
||||
.catchall(z.any())
|
||||
.transform((agent, ctx) => {
|
||||
const knownKeys = new Set([
|
||||
"name",
|
||||
"model",
|
||||
"prompt",
|
||||
"description",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user