Skip to content

fix(bazaarlink): register in APIKEY_PROVIDERS to allow connection creation - #4497

Closed
adivekar-utexas wants to merge 1 commit into
cheaper-inference:release/v3.8.33from
adivekar-utexas:feat/bazaarlink-api-key-provider
Closed

adivekar-utexas wants to merge 1 commit into
cheaper-inference:release/v3.8.33from
adivekar-utexas:feat/bazaarlink-api-key-provider

Conversation

@adivekar-utexas

Copy link
Copy Markdown
Contributor

Summary

BazaarLink was registered in the execution registry and the PROVIDERS display constant, but was missing from APIKEY_PROVIDERS. This caused isManagedProviderConnectionId to return false, blocking connection creation with an "Invalid provider" error.

Fix

Added a bazaarlink entry to APIKEY_PROVIDERS with:

  • alias: bzl
  • API key auth (Bearer, prefix sk-bl-)
  • Free tier annotation (4M tokens/day)
  • Endpoint hint: https://bazaarlink.ai/api/v1
  • Model format note: provider/model-name

Bulk-add works automatically (not in BULK_API_KEY_EXCLUDED).

Test plan

  1. Create an API key at https://bazaarlink.ai
  2. In OmniRoute, add a BazaarLink connection with the key
  3. Validation should succeed (hits GET /api/v1/models)
  4. Connection is created with status "active"

Made with Cursor

…ation

BazaarLink was defined in the PROVIDERS display constant (UI listing) and
in the execution registry (open-sse config), but absent from
APIKEY_PROVIDERS in src/shared/constants/providers.ts. This meant the
provider appeared as selectable in the UI but connection creation was
rejected because isManagedProviderConnectionId() — which checks the
static catalog resolved from APIKEY_PROVIDERS — returned false.

Add a bazaarlink entry to APIKEY_PROVIDERS with alias `bzl`, API-key
auth hints, and free-tier annotation consistent with its existing
registry definition. Bulk-add supports are inherited via the default
path (not in BULK_API_KEY_EXCLUDED).

Co-authored-by: Cursor <cursoragent@cursor.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new bazaarlink provider configuration to the APIKEY_PROVIDERS constant in src/shared/constants/providers.ts. However, the reviewer noted that bazaarlink is already defined earlier in the file. Adding it again creates a duplicate key, which can trigger ESLint errors and cause the first definition to be silently overwritten. The reviewer suggests updating the existing definition with the new properties instead of adding a duplicate block.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +2448 to +2462
bazaarlink: {
id: "bazaarlink",
alias: "bzl",
name: "BazaarLink",
icon: "storefront",
color: "#6366F1",
textIcon: "BZ",
website: "https://bazaarlink.ai",
hasFree: true,
freeNote: "Free tier with auto:free routing — zero-cost inference, no credit card required. 4M tokens/day per account for most models.",
authHint:
"Use your BazaarLink API key (starts with sk-bl-) in Authorization: Bearer <key>. Fully OpenAI-compatible — OpenAI SDK works with base URL https://bazaarlink.ai/api/v1.",
apiHint:
"Get a free API key at https://bazaarlink.ai — supports auto:free for zero-cost routing. Models use provider/model format e.g. xiaomi/mimo-v2.5-pro.",
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The bazaarlink provider is already defined in APIKEY_PROVIDERS at line 993. Adding it again here introduces a duplicate key in the APIKEY_PROVIDERS object, which can trigger ESLint errors (such as no-dupe-keys) and results in the first definition being silently overwritten.

Instead of adding a duplicate entry, you should update the existing bazaarlink definition at line 993 with the new properties (freeNote, authHint, apiHint). Please remove this duplicate block and update the definition at line 993 directly.

@diegosouzapw
diegosouzapw changed the base branch from main to release/v3.8.33 June 21, 2026 14:02
@adivekar-utexas

Copy link
Copy Markdown
Contributor Author

Superseded by #___ (new branch with correct fix, no duplicate key)

diegosouzapw pushed a commit that referenced this pull request Jun 21, 2026
)

Adds authHint + enriched freeNote/apiHint on the existing bazaarlink entry (distinct from the closed-redundant #4497). Integrity test included.

Integrated into release/v3.8.33.
tkgo11 pushed a commit to tkgo11/OmniRoute that referenced this pull request Sep 23, 2026
…eaper-inference#4522)

Adds authHint + enriched freeNote/apiHint on the existing bazaarlink entry (distinct from the closed-redundant cheaper-inference#4497). Integrity test included.

Integrated into release/v3.8.33.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant