refactor: simplify config value formatting in CodexProvider

- Removed unnecessary JSON.stringify conversion for string values in formatConfigValue function, streamlining the value formatting process.
- This change enhances code clarity and reduces complexity in the configuration handling of the CodexProvider.
This commit is contained in:
DhanushSantosh
2026-01-08 00:27:11 +05:30
parent 9d8464cceb
commit 821827f850

View File

@@ -311,9 +311,6 @@ function buildCombinedPrompt(options: ExecuteOptions, systemPromptText?: string
}
function formatConfigValue(value: string | number | boolean): string {
if (typeof value === 'string') {
return JSON.stringify(value);
}
return String(value);
}