Saoud Rizwan 1 سال پیش
والد
کامیت
3a5fa54384
3فایلهای تغییر یافته به همراه4 افزوده شده و 6 حذف شده
  1. 2 2
      src/providers/ClaudeDevProvider.ts
  2. 1 3
      src/utils/export-markdown.ts
  3. 1 1
      webview-ui/src/components/ApiOptions.tsx

+ 2 - 2
src/providers/ClaudeDevProvider.ts

@@ -719,8 +719,8 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
 			if (apiKey) {
 			if (apiKey) {
 				apiProvider = "anthropic"
 				apiProvider = "anthropic"
 			} else {
 			} else {
-				// New users should default to anthropic for now, but will change to openrouter after fast edit mode
-				apiProvider = "anthropic"
+				// New users should default to openrouter
+				apiProvider = "openrouter"
 			}
 			}
 		}
 		}
 
 

+ 1 - 3
src/utils/export-markdown.ts

@@ -7,7 +7,6 @@ export async function downloadTask(dateTs: number, conversationHistory: Anthropi
 	// File name
 	// File name
 	const date = new Date(dateTs)
 	const date = new Date(dateTs)
 	const month = date.toLocaleString("en-US", { month: "short" }).toLowerCase()
 	const month = date.toLocaleString("en-US", { month: "short" }).toLowerCase()
-	const monthLong = date.toLocaleString("en-US", { month: "long" })
 	const day = date.getDate()
 	const day = date.getDate()
 	const year = date.getFullYear()
 	const year = date.getFullYear()
 	let hours = date.getHours()
 	let hours = date.getHours()
@@ -25,8 +24,7 @@ export async function downloadTask(dateTs: number, conversationHistory: Anthropi
 			const content = Array.isArray(message.content)
 			const content = Array.isArray(message.content)
 				? message.content.map(formatContentBlockToMarkdown).join("\n")
 				? message.content.map(formatContentBlockToMarkdown).join("\n")
 				: message.content
 				: message.content
-			const timestamp = `# ${monthLong} ${day},${year} ${hours}:${minutes}:${seconds}${ampm}`;
-			return `${timestamp}\n${role}\n\n${content}\n\n`
+			return `${role}\n\n${content}\n\n`
 		})
 		})
 		.join("---\n\n")
 		.join("---\n\n")
 
 

+ 1 - 1
webview-ui/src/components/ApiOptions.tsx

@@ -113,8 +113,8 @@ const ApiOptions = ({ showModelOptions, apiErrorMessage }: ApiOptionsProps) => {
 					value={selectedProvider}
 					value={selectedProvider}
 					onChange={handleInputChange("apiProvider")}
 					onChange={handleInputChange("apiProvider")}
 					style={{ minWidth: 130 }}>
 					style={{ minWidth: 130 }}>
-					<VSCodeOption value="anthropic">Anthropic</VSCodeOption>
 					<VSCodeOption value="openrouter">OpenRouter</VSCodeOption>
 					<VSCodeOption value="openrouter">OpenRouter</VSCodeOption>
+					<VSCodeOption value="anthropic">Anthropic</VSCodeOption>
 					<VSCodeOption value="gemini">Google Gemini</VSCodeOption>
 					<VSCodeOption value="gemini">Google Gemini</VSCodeOption>
 					<VSCodeOption value="vertex">GCP Vertex AI</VSCodeOption>
 					<VSCodeOption value="vertex">GCP Vertex AI</VSCodeOption>
 					<VSCodeOption value="bedrock">AWS Bedrock</VSCodeOption>
 					<VSCodeOption value="bedrock">AWS Bedrock</VSCodeOption>