Skip to content

Add AI/ML API as an OpenAI-compatible provider preset #786

Description

@D1m7asis

Proposal

Add AI/ML API as a branded provider preset on top of Zoo Code's existing OpenAI-compatible provider path.

The minimal scope would be:

  • provider id/label: aimlapi / AI/ML API
  • API key field backed by AIMLAPI_API_KEY
  • fixed base URL: https://api.aimlapi.com/v1
  • bearer authentication through the existing OpenAI-compatible handler
  • a small curated chat-model list for the first PR
  • attribution headers on AI/ML API requests:
    • X-AIMLAPI-Partner-ID: Zoo-Code-Org
    • X-AIMLAPI-Integration-Repo: Zoo-Code-Org/Zoo-Code
    • X-AIMLAPI-Integration-Version: 1.0.0

Why this fits the current architecture

OpenAICompatibleHandler already accepts a fixed baseURL, API key, model id, and custom headers, so this should not require a new transport or inference implementation. The first version can avoid live model discovery and reuse the existing provider settings/model-picker patterns.

I can prepare the focused implementation, UI wiring, tests, and docs. Would maintainers accept a branded preset with this scope?

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions