mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
- translator/index.js: replace require() with static side-effect imports (ESM-safe), lazy-init registry maps to survive circular import order - openai-responses->openai: map max_output_tokens -> max_tokens (avoid leaking field upstream) - gemini/antigravity -> openai: derive deterministic tool_call id from name so functionCall/functionResponse pair correctly (fixes provider tool-pairing 400s) - add offline unit tests (finish-reason, usage, session-manager, ollama malformed args, const guard) - add real-creds integration tests (provider-cases + all-formats matrix: 6 inbound formats x 4 scenarios) Includes co-located provider registry refactor (pricing/capabilities/media providers) and sessionManager updates. Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
export default {
|
|
id: "nanobanana",
|
|
priority: 80,
|
|
hasFree: true,
|
|
alias: "nanobanana",
|
|
aliases: [
|
|
"nb",
|
|
],
|
|
uiAlias: "nb",
|
|
display: {
|
|
name: "NanoBanana API",
|
|
icon: "extension",
|
|
color: "#FFD700",
|
|
textIcon: "🍌",
|
|
website: "https://nanobananaapi.ai",
|
|
notice: {
|
|
text: "3rd-party proxy for Google Nano Banana (Gemini 2.5/3 Flash Image). For official, use Gemini provider.",
|
|
apiKeyUrl: "https://nanobananaapi.ai/dashboard",
|
|
},
|
|
},
|
|
category: "apikey",
|
|
transport: {
|
|
baseUrl: "https://api.nanobananaapi.ai/v1/chat/completions",
|
|
validateUrl: "https://api.nanobananaapi.ai/v1/models",
|
|
},
|
|
models: [
|
|
{ id: "nanobanana-flash", name: "NanoBanana Flash", params: ["n","size"], kind: "image" },
|
|
{ id: "nanobanana-pro", name: "NanoBanana Pro", params: ["n","size"], kind: "image" },
|
|
],
|
|
serviceKinds: ["image"],
|
|
imageConfig: {
|
|
baseUrl: "https://api.nanobananaapi.ai/api/v1/nanobanana/generate",
|
|
pollUrl: "https://api.nanobananaapi.ai/api/v1/nanobanana/record-info",
|
|
},
|
|
};
|