add console logging to verify custom API configuration is working

This commit is contained in:
Russell Ballestrini 2025-07-10 23:42:23 -04:00
parent 96082cf750
commit 4259e6774c

View file

@ -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,