This commit is contained in:
reanon
2025-05-20 12:24:51 +02:00
parent 1d8b13ba70
commit 87c6dd90cb
+1 -1
View File
@@ -83,7 +83,7 @@ export const OpenAIV1ChatCompletionSchema = z
// Tool usage must be enabled via config because we currently have no way to
// track quota usage for them or enforce limits.
.omit(
Boolean(config.allowOpenAIToolUsage) ? {} : { tools: true, functions: true }
!Boolean(config.allowOpenAIToolUsage) ? { tools: true, functions: true } : {}
)
.strip();
export type OpenAIChatMessage = z.infer<