fix: add Blackbox AI as a supported provider (closes #599) (#630)

* fix: add multi-model support for Factory Droid CLI tool (closes #521)

* Add Claude Opus 4.7 to cc and cl provider lists

RESEARCH confirmed GA release April 16, 2026. Adding to:
- cc (Claude Code): claude-opus-4-7
- cl (Cline): anthropic/claude-opus-4.7

Refs: TICKET-20260416-ENG-O4.7-001

* fix: add Blackbox AI as a supported provider (closes #599)
This commit is contained in:
Anurag Saxena 2026-04-17 01:06:00 -04:00 committed by GitHub
parent 1d872ce254
commit 3badf1cbb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 40 additions and 0 deletions

View file

@ -204,6 +204,24 @@ export async function POST(request) {
break;
}
case "blackbox": {
const res = await fetch("https://api.blackbox.ai/chat/completions", {
method: "POST",
headers: {
"Authorization": `Bearer ${apiKey}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "gpt-4o",
messages: [{ role: "user", content: "test" }],
max_tokens: 10,
}),
});
// Returns 401 for invalid key, 200 for valid, 400 for malformed
isValid = res.status === 200 || res.status === 400;
break;
}
case "vertex": {
// Raw key: probe global endpoint (always 404 for unknown model, never 401)
// SA JSON: attempt token mint via JWT assertion