dunno
This commit is contained in:
@@ -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<
|
||||
|
||||
Reference in New Issue
Block a user