Skip to content

Conversation

@D1m7asis
Copy link
Contributor

Introduces full support for AI/ML API as a first-class provider alongside existing ones:

  • Configuration

    • Updated README.md to document the new AIMLAPI env var under MODELS
    • Added [MODELS.AIMLAPI] section to sample.config.toml
    • Extended src/app/api/config/route.ts to load and persist aimlApiKey
    • Exposed “AI/ML API Key” input in the Settings UI at src/app/settings/page.tsx
    • Added getAimlApiKey() helper in src/lib/config.ts
  • Provider registration

    • New src/lib/providers/aimlapi.ts implements:

      • loadAimlApiChatModels() to fetch and wrap AIMLAPI chat-completion models via LangChain’s ChatOpenAI
      • loadAimlApiEmbeddingModels() to fetch and wrap AIMLAPI embedding models via LangChain’s OpenAIEmbeddings
    • Registered AIMLAPI in the global provider registry at src/lib/providers/index.ts

    • Introduced PROVIDER_INFO for display name and key

All existing workflows for selecting a chat or embedding model now include AIMLAPI as an option, and usage will correctly load your AI/ML API key and surface the available models.

Settings Screenshot:
image

Introduces support for the AI/ML API provider, including configuration options, chat and embedding model loading, and UI integration. Updates documentation and sample config to reflect the new provider.
@ItzCrazyKns ItzCrazyKns self-requested a review June 30, 2025 10:02
@ItzCrazyKns ItzCrazyKns merged commit 95c753a into ItzCrazyKns:master Jun 30, 2025
@ItzCrazyKns
Copy link
Owner

Thanks!

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.

2 participants