feat(ai-service): expose model and provider metadata endpoint #769 - #865
Open
oyetunde140 wants to merge 2 commits into
Open
feat(ai-service): expose model and provider metadata endpoint #769#865oyetunde140 wants to merge 2 commits into
oyetunde140 wants to merge 2 commits into
Conversation
Add a safe /v1/ai/metadata endpoint that reports active AI providers, configured model versions, and capability flags for debugging and integration checks. Secrets and private credentials are excluded. - New GET /v1/ai/metadata route in api/v1/metadata.py - Legacy 308 redirect from /ai/metadata -> /v1/ai/metadata - Root endpoint includes metadata link - Comprehensive test coverage for structure, secrets safety, and legacy redirect Closes Pulsefy#769 Co-authored-by: Cursor <cursoragent@cursor.com>
|
@oyetunde140 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
Kindly resolve conflicts |
Contributor
|
@oyetunde140 kindly fix CI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds a safe metadata endpoint (
/v1/ai/metadata) that reports active AI providers, model versions, and capability flags for debugging and integration checks. The endpoint intentionally excludes all secrets and private credentials.Related Issue
Closes #769
Changes
📋 Metadata Endpoint
[ADD]
app/ai-service/api/v1/metadata.pyGET /v1/ai/metadatareturns provider, model versions, capability flags, and runtime info_linksto health and dependency check endpoints[MODIFY]
app/ai-service/api/v1/router.py[MODIFY]
app/ai-service/main.py/ai/metadatato/v1/ai/metadatametadatalink field[ADD]
app/ai-service/test_main.pyVerification Results