diff --git a/src/config.js b/src/config.js index b2f97dc..96c96fe 100644 --- a/src/config.js +++ b/src/config.js @@ -80,6 +80,11 @@ export function getAPIConfig() { const customModelName = localStorage.getItem("customModelName"); if (customBaseURL && customAPIKey && customModelName) { + console.log("🔧 Using CUSTOM API:", { + endpoint: customBaseURL, + model: customModelName, + apiKey: customAPIKey.substring(0, 8) + "..." + }); return { isCustom: true, endpoint: customBaseURL, @@ -90,6 +95,12 @@ export function getAPIConfig() { "Content-Type": "application/json" } }; + } else { + console.log("⚠️ Custom API enabled but missing configuration:", { + baseURL: !!customBaseURL, + apiKey: !!customAPIKey, + modelName: !!customModelName + }); } } } catch (error) { @@ -97,6 +108,7 @@ export function getAPIConfig() { } // Return default configuration + console.log("🏠 Using DEFAULT Hermes API"); return { isCustom: false, endpoints: VLLM_ENDPOINTS,