Skip to content

feat: Add LibertAI in inference providers#1526

Open
RezaRahemtola wants to merge 1 commit intogenlayerlabs:mainfrom
RezaRahemtola:main
Open

feat: Add LibertAI in inference providers#1526
RezaRahemtola wants to merge 1 commit intogenlayerlabs:mainfrom
RezaRahemtola:main

Conversation

@RezaRahemtola
Copy link

@RezaRahemtola RezaRahemtola commented Mar 12, 2026

What

Adding LibertAI as an inference providers, with 2 model aliases redirecting to our current flagship fast and core models.

Summary by CodeRabbit

  • New Features
    • Added LibertAI as a supported LLM provider with two available models: ltai-fast and ltai-core
    • New environment variable configuration enables LibertAI API integration
    • Updated provider validation schemas to recognize and support LibertAI configuration

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 12, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9ae67985-c4e8-4db0-aa73-29566084c368

📥 Commits

Reviewing files that changed from the base of the PR and between f77ddd8 and ab91327.

📒 Files selected for processing (5)
  • .env.example
  • backend/node/create_nodes/default_providers/libertai_ltai-core.json
  • backend/node/create_nodes/default_providers/libertai_ltai-fast.json
  • backend/node/create_nodes/providers_schema.json
  • frontend/src/assets/schemas/providers_schema.json

📝 Walkthrough

Walkthrough

This PR adds support for a new LibertAI provider integration with two OpenAI-compatible models. Changes include environment variable configuration, two provider configuration files (ltai-core and ltai-fast), and matching schema updates in both backend and frontend to validate the new provider setup.

Changes

Cohort / File(s) Summary
Environment & Provider Configurations
.env.example, backend/node/create_nodes/default_providers/libertai_ltai-*.json
Added LIBERTAI_API_KEY environment variable and two LibertAI provider configuration files specifying OpenAI-compatible models (ltai-core, ltai-fast) with API endpoint https://api.libertai.io.
Backend Provider Schema
backend/node/create_nodes/providers_schema.json
Extended schema to support libertai provider with conditional validation mapping to openai-compatible plugin and restricting models to ltai-fast or ltai-core.
Frontend Provider Schema
frontend/src/assets/schemas/providers_schema.json
Mirrored backend schema changes to frontend assets, adding libertai to provider examples and conditional validation rules for model restrictions.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 A whisker-twitch for LibertAI,
New models fast and core reach sky,
Schemas validated, configs in place,
The rabbit hops at this faster pace! 🚀

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description provides only a brief 'What' section but lacks required sections (Why, Testing done, Decisions made, Checks, User facing release notes) specified in the repository template. Complete the description by adding Why, Testing done, Decisions made, and User facing release notes sections. Include the checklist items and provide details about testing and rationale for the integration.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat: Add LibertAI in inference providers' accurately and concisely summarizes the main change—adding LibertAI as a new inference provider with two model aliases.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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