feat: show Ollama plugin badge and available LLM models on marketplace cards

Backend:
- Add attributes field to MarketplaceOfferView schema
- Include attributes in _to_offer_view() response

Frontend:
- Add attributes type with Ollama fields to OfferRecord
- Show purple 'Ollama' plugin badge on cards with models
- Display available LLM model tags (gemma3, deepseek-r1, etc.)
- Add plugin-badge and model-tag CSS styles
This commit is contained in:
oib
2026-02-14 16:57:15 +01:00
parent 417259171a
commit 72e21fd07f
5 changed files with 65 additions and 0 deletions

View File

@@ -196,6 +196,7 @@ class MarketplaceOfferView(BaseModel):
cuda_version: Optional[str] = None
price_per_hour: Optional[float] = None
region: Optional[str] = None
attributes: Optional[dict] = None
class MarketplaceStatsView(BaseModel):

View File

@@ -87,4 +87,5 @@ class MarketplaceService:
cuda_version=offer.cuda_version,
price_per_hour=offer.price_per_hour,
region=offer.region,
attributes=offer.attributes,
)