Feature Request: Add Tags to Models for Categorization and Filtering #542
Description
🚀 Describe the new functionality needed
The GET /models/list API should include a new field, tags, in its response. The tags field will provide a way to categorize models based on their types or purposes, such as "instruct," "chat," "vision," etc.
For example, the updated response could look like this:
[
{
"identifier": "Llama3.2-1B-Instruct",
"llama_model": "Llama3.2-1B-Instruct",
"metadata": { "ollama_model": "llama3.2:1b-instruct-fp16" },
"provider_id": "remote::ollama",
"tags": "instruct"
}
]
This enhancement allows users to filter and categorize models efficiently based on their tags.
💡 Why is this needed? What if we don't build it?
-
Improved Usability: Categorizing models by tags will simplify the process of identifying relevant models, especially in cases where many models are available.
-
Scalability: As the library of models grows, the tags field will allow better organization and efficient handling of diverse model types.
-
Enhanced Developer Experience: Developers can easily integrate and use the models in their workflows without needing to implement custom logic for filtering or categorizing models manually.
-
Future-Proofing: The tags field creates a foundation for future features, such as multi-tag filtering or UI improvements for model browsing.
Other thoughts
No response