Skip to content

feat: add /v1/models API endpoint with caching support#115

Merged
lich0821 merged 1 commit intolich0821:masterfrom
qxo:feat-v1-models
Mar 23, 2026
Merged

feat: add /v1/models API endpoint with caching support#115
lich0821 merged 1 commit intolich0821:masterfrom
qxo:feat-v1-models

Conversation

@qxo
Copy link
Copy Markdown
Contributor

@qxo qxo commented Mar 22, 2026

  • Implement OpenAI-compatible /v1/models endpoint
  • Aggregate models from all enabled endpoints
  • Add endpoint_id field to identify model source
  • Implement 30-minute TTL cache (configurable)
  • Add optional ?refresh=true parameter (disabled by default)
  • Support fallback to default models when backend APIs fail
  • Add modelsCacheTTL and modelsCacheRefreshEnabled config options
  • Auto-clear cache on config update

- Implement OpenAI-compatible /v1/models endpoint
- Aggregate models from all enabled endpoints
- Add endpoint_id field to identify model source
- Implement 30-minute TTL cache (configurable)
- Add optional ?refresh=true parameter (disabled by default)
- Support fallback to default models when backend APIs fail
- Add modelsCacheTTL and modelsCacheRefreshEnabled config options
- Auto-clear cache on config update
@lich0821 lich0821 merged commit 31571c2 into lich0821:master Mar 23, 2026
6 checks passed
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