Skip to content

#204 Add a /models Endpoint to List Available AI Models #452

Merged
viru0909-dev merged 2 commits into
viru0909-dev:mainfrom
prxsingh5058:feat-models-endpoint-clean
May 19, 2026
Merged

#204 Add a /models Endpoint to List Available AI Models #452
viru0909-dev merged 2 commits into
viru0909-dev:mainfrom
prxsingh5058:feat-models-endpoint-clean

Conversation

@prxsingh5058
Copy link
Copy Markdown
Contributor

@prxsingh5058 prxsingh5058 commented May 18, 2026

Pull Request

Description

This PR adds a new GET /models endpoint in the NLP Orchestrator service as part of issue #204.

The changes were made in "main.py" where the endpoint was added. The endpoint returns a list of configured AI models along with their availability status. So basically it reads model names from "config.py" and checks whether the required environment API keys - GROQ_API_KEY and GEMINI_API_KEY are present to determine if each provider is available.

The response includes both Groq and Gemini entries. Both contain:

  1. The configured model name.
  2. An available Boolean based on environment configuration.

Also the endpoint returns a structured JSON response in the format specified in the issue.

Closes #204

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

@prxsingh5058 is attempting to deploy a commit to the CodeBlooded's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nyaysetu Ready Ready Preview, Comment May 19, 2026 7:51am

Copy link
Copy Markdown
Owner

@viru0909-dev viru0909-dev left a comment

Choose a reason for hiding this comment

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

@prxsingh5058 Good Work! Merging this. Thank you.

@viru0909-dev viru0909-dev merged commit 4fecfd1 into viru0909-dev:main May 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a /models Endpoint to List Available AI Models

2 participants