Add script to easily update version

This commit is contained in:
Saoud Rizwan
2024-08-03 15:05:49 -04:00
parent 7989410696
commit 2d37c290fa
4 changed files with 43 additions and 6 deletions

View File

@@ -5,17 +5,17 @@ export function validateApiConfiguration(apiConfiguration?: ApiConfiguration): s
switch (apiConfiguration.apiProvider) {
case "anthropic":
if (!apiConfiguration.apiKey) {
return "API Key cannot be empty. You must provide an API key to use Claude Dev."
return "You must provide a valid API key or choose a different provider."
}
break
case "bedrock":
if (!apiConfiguration.awsAccessKey || !apiConfiguration.awsSecretKey || !apiConfiguration.awsRegion) {
return "AWS credentials are incomplete. You must provide an AWS access key, secret key, and region."
return "You must provide a valid AWS access key, secret key, and region."
}
break
case "openrouter":
if (!apiConfiguration.openRouterApiKey) {
return "API Key cannot be empty. You must provide an API key to use Claude Dev."
return "You must provide a valid API key or choose a different provider."
}
break
}