mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 18:07:00 +01:00
Fix provider compatibility and limit Bedrock to scoped API keys
Preserve older OpenRouter reconnects and Gemini CLI login. Reject raw AWS access keys and remove them from Claude provider allowlists. Clarify missing account recovery and correct Storybook query types. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
4c41e57eda
commit
e1f9f55e7a
21 files changed
+98
-123
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import {
|
||||
aiAwsCredentialsSchema,
|
||||
aiRoutingBaseUrl,
|
||||
aiRoutingModel,
|
||||
type AiProviderRouting,
|
||||
@@ -22,12 +21,7 @@ export function managedProviderRouting(
|
||||
env.AWS_REGION = route.region!;
|
||||
env.AWS_DEFAULT_REGION = route.region!;
|
||||
env.AWS_EC2_METADATA_DISABLED = "true";
|
||||
if (route.auth === "aws_credentials") {
|
||||
const aws = aiAwsCredentialsSchema.parse(JSON.parse(credential));
|
||||
env.AWS_ACCESS_KEY_ID = aws.accessKeyId;
|
||||
env.AWS_SECRET_ACCESS_KEY = aws.secretAccessKey;
|
||||
env.AWS_SESSION_TOKEN = aws.sessionToken ?? "";
|
||||
} else env.AWS_BEARER_TOKEN_BEDROCK = credential;
|
||||
env.AWS_BEARER_TOKEN_BEDROCK = credential;
|
||||
} else if (harness === "codex_local") {
|
||||
env.PAPERCLIP_AI_PROVIDER_KEY = credential;
|
||||
codexConfig = `model_provider = "paperclip"\n[model_providers.paperclip]\nname = "Paperclip connection"\nbase_url = ${JSON.stringify(baseUrl)}\nwire_api = "responses"\nrequires_openai_auth = false\n${route.auth === "none" ? "" : 'env_key = "PAPERCLIP_AI_PROVIDER_KEY"\n'}`;
|
||||
|
||||
Reference in new issue
Block a user