feat: support for custom OpenAI logging directory configuration

This commit is contained in:
pomelo-nwu
2025-11-05 18:49:04 +08:00
parent 335e765df0
commit d4ab328671
9 changed files with 432 additions and 7 deletions

View File

@@ -558,6 +558,16 @@ const SETTINGS_SCHEMA = {
description: 'Enable OpenAI logging.',
showInDialog: true,
},
openAILoggingDir: {
type: 'string',
label: 'OpenAI Logging Directory',
category: 'Model',
requiresRestart: false,
default: undefined as string | undefined,
description:
'Custom directory path for OpenAI API logs. If not specified, defaults to logs/openai in the current working directory.',
showInDialog: true,
},
generationConfig: {
type: 'object',
label: 'Generation Configuration',