Skip to content

Commit abbb8fd

Browse files
committed
remove unnecessary log lines
1 parent 1f525e1 commit abbb8fd

File tree

6 files changed

+1
-9
lines changed

6 files changed

+1
-9
lines changed

src/api/providers/fetchers/litellm.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { DEFAULT_HEADERS } from "../constants"
1414
* @throws Will throw an error if the request fails or the response is not as expected.
1515
*/
1616
export async function getLiteLLMModels(apiKey: string, baseUrl: string): Promise<ModelRecord> {
17-
console.log("[getLiteLLMModels] Fetching LiteLLM models...")
1817
try {
1918
const headers: Record<string, string> = {
2019
"Content-Type": "application/json",

src/api/providers/fetchers/modelCache.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@ async function readModels(router: RouterName): Promise<ModelRecord | undefined>
4747
* @returns The models from the cache or the fetched models.
4848
*/
4949
export const getModels = async (options: GetModelsOptions): Promise<ModelRecord> => {
50-
console.log("[getModels] Fetching models for provider:", options.provider)
5150
const { provider } = options
5251
let models = memoryCache.get<ModelRecord>(provider)
5352
if (models) {
54-
console.log(`[getModels] Models for ${provider} found in memory cache`)
5553
return models
5654
}
5755

src/core/webview/webviewMessageHandler.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,16 +396,13 @@ export const webviewMessageHandler = async (
396396

397397
const archgwBaseUrl =
398398
apiConfiguration.archgwBaseUrl || message?.values?.archgwBaseUrl || "http://localhost:12000/v1"
399-
console.log(`[webviewMessageHandler] requestRouterModels - archgwBaseUrl: ${archgwBaseUrl}`)
400399
if (archgwBaseUrl) {
401400
modelFetchPromises.push({
402401
key: "archgw",
403402
options: { provider: "archgw", baseUrl: archgwBaseUrl },
404403
})
405404
}
406405

407-
console.log("[webviewMessageHandler] requestRouterModels - modelFetchPromises:", modelFetchPromises)
408-
409406
const results = await Promise.allSettled(
410407
modelFetchPromises.map(async ({ key, options }) => {
411408
const models = await safeGetModels(options)

webview-ui/src/components/ui/hooks/useSelectedModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function getSelectedModel({
121121
}
122122

123123
case "archgw": {
124-
const id = apiConfiguration.archgwModelId ?? "gemini"
124+
const id = apiConfiguration.archgwModelId ?? "gpt-4o"
125125
const info = routerModels.archgw[id]
126126
return info ? { id, info } : { id: archgwDefaultModelId, info: routerModels.archgw[archgwDefaultModelId] }
127127
}

webview-ui/src/context/ExtensionStateContext.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
319319
break
320320
}
321321
case "routerModels": {
322-
console.log("Received router models:", message.routerModels)
323322
setExtensionRouterModels(message.routerModels)
324323
break
325324
}

webview-ui/src/utils/validate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ function validateProviderAgainstOrganizationSettings(
146146
}
147147

148148
function getModelIdForProvider(apiConfiguration: ProviderSettings, provider: string): string | undefined {
149-
console.log("getModelIdForProvider", { apiConfiguration, provider })
150149
switch (provider) {
151150
case "openrouter":
152151
return apiConfiguration.openRouterModelId

0 commit comments

Comments
 (0)