Better overrideShowThoughts value

7df6a78f3383fdf538dd02ebcc966b3140e54e69

bmen25124 <bmen25124@gmail.com>

1 files changed, +2 -2Showing whitespace changes
public/scripts/openai.js+2 -2
@@ -2269,9 +2269,9 @@ async function sendOpenAIRequest(type, messages, signal) {
22692269 * @param {boolean?} [options.overrideShowThoughts] Override show thoughts
22702270 * @returns {string} The reply extracted from the response data
22712271 */
22722272export function getStreamingReply(data, state, { chatCompletionSource = null, overrideShowThoughts = null } = {}) {
22732273 const chat_completion_source = chatCompletionSource ?? oai_settings.chat_completion_source;
22742274 const show_thoughts = overrideShowThoughts !== undefinednull ? overrideShowThoughts : oai_settings.show_thoughts;
22752275
22762276 if (chat_completion_source === chat_completion_sources.CLAUDE) {
22772277 if (show_thoughts) {