Skip to content

Commit dfeb57d

Browse files
committed
Fix Lint
1 parent 9232d75 commit dfeb57d

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

src/api/providers/requesty.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ import { Anthropic } from "@anthropic-ai/sdk"
22
import OpenAI from "openai"
33
import { withRetry } from "../retry"
44
import { calculateApiCostOpenAI } from "../../utils/cost"
5-
import { ApiHandlerOptions, ModelInfo, openAiModelInfoSaneDefaults, requestyDefaultModelId, requestyDefaultModelInfo } from "../../shared/api"
5+
import {
6+
ApiHandlerOptions,
7+
ModelInfo,
8+
openAiModelInfoSaneDefaults,
9+
requestyDefaultModelId,
10+
requestyDefaultModelInfo,
11+
} from "../../shared/api"
612
import { ApiHandler } from "../index"
713
import { convertToOpenAiMessages } from "../transform/openai-format"
814
import { ApiStream } from "../transform/stream"

src/core/webview/ClineProvider.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
542542
telemetryService.updateTelemetryState(isOptedIn)
543543
})
544544

545-
546545
// post last cached models in case the call to endpoint fails
547546
this.readDynamicProviderModels(GlobalFileNames.requestyModels).then((requestyModels) => {
548547
if (requestyModels) {
@@ -552,7 +551,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
552551
})
553552
}
554553
})
555-
554+
556555
// gui relies on model info to be up-to-date to provide the most accurate pricing, so we need to fetch the latest details on launch.
557556
// we do this for all users since many users switch between api providers and if they were to switch back to openrouter it would be showing outdated model info if we hadn't retrieved the latest at this point
558557
// (see normalizeApiConfiguration > openrouter)
@@ -569,7 +568,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
569568
}
570569
}
571570
})
572-
571+
573572
break
574573
case "newTask":
575574
// Code that should run in response to the hello message command

src/shared/api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,4 +905,3 @@ export const xaiModels = {
905905
description: "X AI's Grok Beta model (legacy) with 131K context window",
906906
},
907907
} as const satisfies Record<string, ModelInfo>
908-

webview-ui/src/components/settings/SettingsView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
1818
customInstructions,
1919
setCustomInstructions,
2020
openRouterModels,
21-
requestyModels,
21+
requestyModels,
2222
telemetrySetting,
2323
setTelemetrySetting,
2424
} = useExtensionState()

0 commit comments

Comments
 (0)