Skip to content

Commit

Permalink
hotfix: Fix tokenModifierRatio to have a default value
Browse files Browse the repository at this point in the history
  • Loading branch information
KallynGowdy committed Dec 4, 2024
1 parent 1d83ba4 commit 7fd82ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aux-records/ServerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,8 @@ const aiSchema = z.object({
.describe(
'Custom token modifier ratio per model. The key is the model name and the value is the cost multiplier.'
)
.optional(),
.optional()
.default({}),
})
.describe('Options for Chat AI. If omitted, then chat AI is disabled.')
.optional(),
Expand Down

0 comments on commit 7fd82ba

Please sign in to comment.