Better overrideShowThoughts value

7df6a78f3383fdf538dd02ebcc966b3140e54e69

bmen25124 <bmen25124@gmail.com>

1 files changed, +2 -2Ignore whitespace
public/scripts/openai.js+2 -2
@@ -2269,9 +2269,9 @@ async function sendOpenAIRequest(type, messages, signal) {
2269 * @param {boolean?} [options.overrideShowThoughts] Override show thoughts2269 * @param {boolean?} [options.overrideShowThoughts] Override show thoughts
2270 * @returns {string} The reply extracted from the response data2270 * @returns {string} The reply extracted from the response data
2271 */2271 */
2272export function getStreamingReply(data, state, { chatCompletionSource = null, overrideShowThoughts } = {}) {2272export function getStreamingReply(data, state, { chatCompletionSource = null, overrideShowThoughts = null } = {}) {
2273 const chat_completion_source = chatCompletionSource ?? oai_settings.chat_completion_source;2273 const chat_completion_source = chatCompletionSource ?? oai_settings.chat_completion_source;
2274 const show_thoughts = overrideShowThoughts !== undefined ? overrideShowThoughts : oai_settings.show_thoughts;2274 const show_thoughts = overrideShowThoughts !== null ? overrideShowThoughts : oai_settings.show_thoughts;
22752275
2276 if (chat_completion_source === chat_completion_sources.CLAUDE) {2276 if (chat_completion_source === chat_completion_sources.CLAUDE) {
2277 if (show_thoughts) {2277 if (show_thoughts) {