Skip to content

Commit 893175c

Browse files
committed
chore: switch scan model to kimi-k2.5-free and update deploy docs
- Use opencode/kimi-k2.5-free for initial threat scanning (free tier) - Verification still uses AWS Bedrock Opus for accuracy - Update DEPLOY.md to use AWS_BEARER_TOKEN_BEDROCK instead of ANTHROPIC_API_KEY
1 parent 2a669e4 commit 893175c

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

crates/worker/src/scanner/agentic.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use tokio::process::Command;
1212
/// Timeout for OpenCode commands (5 minutes)
1313
const OPENCODE_TIMEOUT_SECS: u64 = 300;
1414

15-
/// Model used for initial threat scanning (AWS Bedrock - Sonnet)
16-
const SCAN_MODEL: &str = "amazon-bedrock/us.anthropic.claude-sonnet-4-5-20250929-v1:0";
15+
/// Model used for initial threat scanning (Kimi K2.5 - free tier)
16+
const SCAN_MODEL: &str = "opencode/kimi-k2.5-free";
1717

1818
/// Model used for threat verification (AWS Bedrock - Opus for accuracy)
1919
const VERIFICATION_MODEL: &str = "amazon-bedrock/us.anthropic.claude-opus-4-5-20251101-v1:0";
@@ -950,11 +950,8 @@ mod tests {
950950

951951
#[test]
952952
fn test_model_constants() {
953-
// Verify model constants are defined correctly (AWS Bedrock)
954-
assert_eq!(
955-
SCAN_MODEL,
956-
"amazon-bedrock/us.anthropic.claude-sonnet-4-5-20250929-v1:0"
957-
);
953+
// Verify model constants are defined correctly
954+
assert_eq!(SCAN_MODEL, "opencode/kimi-k2.5-free");
958955
assert_eq!(
959956
VERIFICATION_MODEL,
960957
"amazon-bedrock/us.anthropic.claude-opus-4-5-20251101-v1:0"

deploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ gcloud run deploy sus-worker \
4040
--platform managed \
4141
--allow-unauthenticated \
4242
--min-instances 1 \
43-
--set-env-vars "DATABASE_URL=$DATABASE_URL,REDIS_URL=$REDIS_URL,ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY,GITHUB_TOKEN=$GITHUB_TOKEN,RUST_LOG=info"
43+
--set-env-vars "DATABASE_URL=$DATABASE_URL,REDIS_URL=$REDIS_URL,AWS_BEARER_TOKEN_BEDROCK=$AWS_BEARER_TOKEN_BEDROCK,AWS_REGION=$AWS_REGION,GITHUB_TOKEN=$GITHUB_TOKEN,RUST_LOG=info"
4444
```
4545

4646
### API (serves package data)

0 commit comments

Comments
 (0)