| 233 | if (this.settings.model === 'gpt-4o-mini-tts' && characterName) { | 233 | if (this.settings.model === 'gpt-4o-mini-tts' && characterName) { |
| 234 | const instructions = this.settings.characterInstructions?.[characterName]; | 234 | const instructions = this.settings.characterInstructions?.[characterName]; |
| 235 | if (instructions && instructions.trim()) { | 235 | if (instructions && instructions.trim()) { |
| 236 | requestBody.instructions = instructions; | 236 | requestBody.instructions = substituteParams(instructions); |
| 237 | } | 237 | } |
| 238 | } | 238 | } |
| 239 | | 239 | |