File tree Expand file tree Collapse file tree 3 files changed +4
-15
lines changed
tools/server/webui/src/lib
components/app/chat/ChatScreen Expand file tree Collapse file tree 3 files changed +4
-15
lines changed Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import { AlertTriangle , RefreshCw } from ' @lucide/svelte' ;
3- import { serverLoading , serverStore , serverWarning } from ' $lib/stores/server.svelte' ;
3+ import { serverLoading , serverStore } from ' $lib/stores/server.svelte' ;
44 import { fly } from ' svelte/transition' ;
55
66 interface Props {
2222 <div class =" flex items-center" >
2323 <AlertTriangle class =" h-4 w-4 text-yellow-600 dark:text-yellow-400" />
2424 <p class =" ml-2 text-sm text-yellow-800 dark:text-yellow-200" >
25- { serverWarning () ?? ' Server `/props` endpoint not available - using cached data' }
25+ Server `/props` endpoint not available - using cached data
2626 </p >
2727 </div >
2828 <button
Original file line number Diff line number Diff line change @@ -563,15 +563,9 @@ export class ChatService {
563563 const currentConfig = config ( ) ;
564564 const apiKey = currentConfig . apiKey ?. toString ( ) . trim ( ) ;
565565
566- // Force a fresh network read so restarting the backend with a new model
567- // immediately propagates updated props and modality information.
568- const cacheBuster = Date . now ( ) . toString ( ) ;
569- const response = await fetch ( `./props?cb=${ cacheBuster } ` , {
570- cache : 'no-store' ,
566+ const response = await fetch ( `./props` , {
571567 headers : {
572568 'Content-Type' : 'application/json' ,
573- 'Cache-Control' : 'no-cache' ,
574- Pragma : 'no-cache' ,
575569 ...( apiKey ? { Authorization : `Bearer ${ apiKey } ` } : { } )
576570 }
577571 } ) ;
Original file line number Diff line number Diff line change @@ -150,13 +150,8 @@ class ServerStore {
150150 const currentConfig = config ( ) ;
151151 const apiKey = currentConfig . apiKey ?. toString ( ) . trim ( ) ;
152152
153- // Avoid cached responses so slot availability reflects the restarted backend.
154- const cacheBuster = Date . now ( ) . toString ( ) ;
155- const response = await fetch ( `./slots?cb=${ cacheBuster } ` , {
156- cache : 'no-store' ,
153+ const response = await fetch ( `./slots` , {
157154 headers : {
158- 'Cache-Control' : 'no-cache' ,
159- Pragma : 'no-cache' ,
160155 ...( apiKey ? { Authorization : `Bearer ${ apiKey } ` } : { } )
161156 }
162157 } ) ;
You can’t perform that action at this time.
0 commit comments