Minor fixes

This commit is contained in:
Saoud Rizwan 2024-09-13 17:06:05 -04:00
parent cd8edc221a
commit 3a5fa54384
3 changed files with 4 additions and 6 deletions

View File

@ -719,8 +719,8 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
if (apiKey) {
apiProvider = "anthropic"
} 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"
}
}

View File

@ -7,7 +7,6 @@ export async function downloadTask(dateTs: number, conversationHistory: Anthropi
// File name
const date = new Date(dateTs)
const month = date.toLocaleString("en-US", { month: "short" }).toLowerCase()
const monthLong = date.toLocaleString("en-US", { month: "long" })
const day = date.getDate()
const year = date.getFullYear()
let hours = date.getHours()
@ -25,8 +24,7 @@ export async function downloadTask(dateTs: number, conversationHistory: Anthropi
const content = Array.isArray(message.content)
? message.content.map(formatContentBlockToMarkdown).join("\n")
: 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")

View File

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