* 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:
@@ -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
|
||||
|
||||
@@ -87,6 +87,7 @@ export const APIKEY_PROVIDERS = {
|
||||
sdwebui: { id: "sdwebui", alias: "sdwebui", name: "SD WebUI", icon: "brush", color: "#FF7043", textIcon: "SD", website: "https://github.com/AUTOMATIC1111/stable-diffusion-webui", serviceKinds: ["image"] },
|
||||
comfyui: { id: "comfyui", alias: "comfyui", name: "ComfyUI", icon: "account_tree", color: "#4CAF50", textIcon: "CF", website: "https://github.com/comfyanonymous/ComfyUI", serviceKinds: ["image"] },
|
||||
huggingface: { id: "huggingface", alias: "hf", name: "HuggingFace", icon: "face", color: "#FFD21E", textIcon: "HF", website: "https://huggingface.co", serviceKinds: ["image", "imageToText", "tts"], hiddenKinds: ["tts"] },
|
||||
blackbox: { id: "blackbox", alias: "bb", name: "Blackbox AI", icon: "smart_toy", color: "#5B5FEF", textIcon: "BB", website: "https://blackbox.ai", serviceKinds: ["llm"] },
|
||||
chutes: { id: "chutes", alias: "ch", name: "Chutes AI", icon: "water_drop", color: "#ffffffff", textIcon: "CH", website: "https://chutes.ai" },
|
||||
"ollama-local": { id: "ollama-local", alias: "ollama-local", name: "Ollama Local", icon: "cloud", color: "#ffffffff", textIcon: "OL", website: "https://ollama.com" },
|
||||
"vertex-partner": { id: "vertex-partner", alias: "vxp", name: "Vertex Partner", icon: "cloud", color: "#34A853", textIcon: "VP", website: "https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-partner-models" },
|
||||
|
||||
Reference in New Issue
Block a user