MCPcopy Create free account
hub / github.com/Roy3838/Observer / handleSetAppInferenceUrl

Function handleSetAppInferenceUrl

app/src/components/AppHeader.tsx:425–438  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

423
424 // Handler for saving inference URL (Tauri only)
425 const handleSetAppInferenceUrl = async (url: string) => {
426 if (isTauri()) {
427 try {
428 const { invoke } = await import('@tauri-apps/api/core');
429 await invoke('set_ollama_url', { newUrl: url });
430 setAppInferenceUrl(url);
431 Logger.info('SETTINGS', `Saved inference URL: ${url}`);
432 // Re-check local server after URL change
433 checkLocalServer();
434 } catch (err) {
435 Logger.error('SETTINGS', `Failed to save inference URL: ${err}`);
436 }
437 }
438 };
439
440 const renderQuotaStatus = () => {
441 if (isSessionExpired) {

Callers

nothing calls this directly

Calls 4

isTauriFunction · 0.90
checkLocalServerFunction · 0.85
infoMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected