jdelavande HF Staff commited on
Commit
7857e3c
·
1 Parent(s): f6e13e9

corrected thinking button

Browse files
src/lib/components/chat/ChatInput.svelte CHANGED
@@ -39,6 +39,7 @@
39
  children?: import("svelte").Snippet;
40
  onPaste?: (e: ClipboardEvent) => void;
41
  showThinking?: boolean;
 
42
  }
43
 
44
  let {
@@ -54,6 +55,7 @@
54
  children,
55
  onPaste,
56
  showThinking = false,
 
57
  }: Props = $props();
58
 
59
  const onFileChange = async (e: Event) => {
@@ -165,8 +167,6 @@
165
 
166
  let showNoTools = $derived(!showWebSearch && !showImageGen && !showFileUpload && !showExtraTools);
167
 
168
- let thinkingIsOn = $state(false);
169
-
170
  </script>
171
 
172
  <div class="flex min-h-full flex-1 flex-col" onpaste={onPaste}>
 
39
  children?: import("svelte").Snippet;
40
  onPaste?: (e: ClipboardEvent) => void;
41
  showThinking?: boolean;
42
+ thinkingIsOn?: boolean;
43
  }
44
 
45
  let {
 
55
  children,
56
  onPaste,
57
  showThinking = false,
58
+ thinkingIsOn = false,
59
  }: Props = $props();
60
 
61
  const onFileChange = async (e: Event) => {
 
167
 
168
  let showNoTools = $derived(!showWebSearch && !showImageGen && !showFileUpload && !showExtraTools);
169
 
 
 
170
  </script>
171
 
172
  <div class="flex min-h-full flex-1 flex-col" onpaste={onPaste}>
src/lib/components/chat/ChatWindow.svelte CHANGED
@@ -76,6 +76,7 @@
76
  let showThinking = $derived(
77
  currentModel.name === "Qwen/Qwen3_8B"
78
  );
 
79
 
80
  beforeNavigate(() => {
81
  if (page.params.id) {
@@ -450,6 +451,7 @@
450
  modelHasTools={currentModel.tools}
451
  modelIsMultimodal={currentModel.multimodal}
452
  showThinking={showThinking}
 
453
  />
454
  {/if}
455
 
 
76
  let showThinking = $derived(
77
  currentModel.name === "Qwen/Qwen3_8B"
78
  );
79
+ let thinkingIsOn = $state(false);
80
 
81
  beforeNavigate(() => {
82
  if (page.params.id) {
 
451
  modelHasTools={currentModel.tools}
452
  modelIsMultimodal={currentModel.multimodal}
453
  showThinking={showThinking}
454
+ thinkingIsOn={thinkingIsOn}
455
  />
456
  {/if}
457