Refactor getStreamingReply to use nullish coalescing for show_thoughts

0b937237c3e01100a8a325a82a4c450eae891646

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/openai.js+1 -1
@@ -2271,7 +2271,7 @@ async function sendOpenAIRequest(type, messages, signal) {
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 !== null ? overrideShowThoughts :? oai_settings.show_thoughts;
22752275
22762276 if (chat_completion_source === chat_completion_sources.CLAUDE) {
22772277 if (show_thoughts) {