add console logging to verify custom API configuration is working
This commit is contained in:
parent
96082cf750
commit
4259e6774c
1 changed files with 12 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue