langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
52.36k stars 7.63k forks source link

Automatically update list of LLM models using the /models API endpoint #10958

Open johnpccd opened 20 hours ago

johnpccd commented 20 hours ago

Self Checks

1. Is this request related to a challenge you're experiencing? Tell me about your story.

It would be a nice feature if the list of OpenAI and OpenRouter models is automatically updated by parsing the output of the /models API endpoint. Because otherwise, I need to add new/modified models myself.. and that also requires re-entering the API key. Instead, Dify can parse the output of:

https://api.openai.com/v1/models and https://openrouter.ai/api/v1/models

and automatically update the list of models.

2. Additional context or comments

No response

3. Can you help us with this feature?