Skip to content

Commit f48b515

Browse files
committed
fix: aktualisiere die API-Basis-URL-Ermittlung in getApiBaseUrl zur Verwendung von apiUrl aus settings
1 parent 5b235e1 commit f48b515

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/lib/agent/tools/oer/oerClient.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ import { settingsStore } from '$lib/stores/settingsStore.svelte.js';
1818
* Ermittelt die API-Basis-URL aus Settings oder Fallback
1919
*/
2020
export function getApiBaseUrl(): string {
21-
// 1. Aus settingsStore (User-Konfiguration)
22-
// Note: oerFinderApiUrl wird in Phase 2 zu settingsStore hinzugefügt
23-
const settings = settingsStore?.settings as any;
24-
const settingsUrl = settings?.oerFinderApiUrl;
21+
// 1. Aus settingsStore (User-Konfiguration via config.json → mergeConfigIntoSettings)
22+
const settings = settingsStore?.settings;
23+
const settingsUrl = settings?.apiUrl;
2524
if (settingsUrl) return settingsUrl;
2625

2726
// 2. Aus Environment Variable

0 commit comments

Comments
 (0)