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

@@ -16,6 +16,13 @@ interface OfferRecord {
cuda_version?: string;
price_per_hour?: number;
region?: string;
attributes?: {
ollama_host?: string;
models?: string[];
vram_mb?: number;
driver?: string;
[key: string]: unknown;
};
}
interface OffersResponse {