Saoud Rizwan 1 year ago
parent
commit
34f160b35a

+ 0 - 22
src/core/webview/ClineProvider.ts

@@ -75,28 +75,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
 		this.outputChannel.appendLine("ClineProvider instantiated")
 		ClineProvider.activeInstances.add(this)
 		this.workspaceTracker = new WorkspaceTracker(this)
-		this.revertKodu()
-	}
-
-	async revertKodu() {
-		const apiProvider = await this.getGlobalState("apiProvider")
-		if (apiProvider === "kodu") {
-			// switch back to previous provider
-			const anthropicKey = await this.getSecret("apiKey")
-			if (anthropicKey) {
-				await this.updateGlobalState("apiProvider", "anthropic" as ApiProvider)
-			} else {
-				const openRouterApiKey = await this.getSecret("openRouterApiKey")
-				if (openRouterApiKey) {
-					await this.updateGlobalState("apiProvider", "openrouter" as ApiProvider)
-				} else {
-					const awsAccessKey = await this.getSecret("awsAccessKey")
-					if (awsAccessKey) {
-						await this.updateGlobalState("apiProvider", "bedrock" as ApiProvider)
-					}
-				}
-			}
-		}
 	}
 
 	/*

+ 2 - 2
webview-ui/src/components/chat/ChatRow.tsx

@@ -460,7 +460,7 @@ const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifiedMessa
 										)}
 									</p>
 
-									{/* {apiProvider === "kodu" && (
+									{/* {apiProvider === "" && (
 											<div
 												style={{
 													display: "flex",
@@ -481,7 +481,7 @@ const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifiedMessa
 														color: "var(--vscode-errorForeground)",
 													}}></i>
 												<span>
-													Uh-oh, this could be a problem on Kodu's end. We've been alerted and
+													Uh-oh, this could be a problem on end. We've been alerted and
 													will resolve this ASAP. You can also{" "}
 													<a
 														href="https://discord.gg/claudedev"

+ 4 - 4
webview-ui/src/components/chat/TaskHeader.tsx

@@ -308,7 +308,7 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
 					</>
 				)}
 			</div>
-			{/* {apiProvider === "kodu" && (
+			{/* {apiProvider === "" && (
 				<div
 					style={{
 						backgroundColor: "color-mix(in srgb, var(--vscode-badge-background) 50%, transparent)",
@@ -324,11 +324,11 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
 					}}>
 					<div style={{ fontWeight: "500" }}>Credits Remaining:</div>
 					<div>
-						{formatPrice(koduCredits || 0)}
-						{(koduCredits || 0) < 1 && (
+						{formatPrice(Credits || 0)}
+						{(Credits || 0) < 1 && (
 							<>
 								{" "}
-								<VSCodeLink style={{ fontSize: "0.9em" }} href={getKoduAddCreditsUrl(vscodeUriScheme)}>
+								<VSCodeLink style={{ fontSize: "0.9em" }} href={getAddCreditsUrl(vscodeUriScheme)}>
 									(get more?)
 								</VSCodeLink>
 							</>