commit 5abac219f3d1eccf906e7f83b43078630dbb744a
Author: root <root@hub.scroll.pub> Date: 2024-12-30 03:12:21 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..2c87f29 --- /dev/null +++ b/body.html @@ -0,0 +1,29 @@ +<header> + <h1>AI Model Hub</h1> + <p>Your Guide to the Best AI Models in the Industry</p> +</header> + +<main> + <section class="search"> + <input type="text" id="searchInput" placeholder="Search for AI models..." aria-label="Search for AI models"> + </section> + + <section class="filters"> + <h2>Filter by:</h2> + <div class="filter-options"> + <button class="filter-btn" data-filter="all">All</button> + <button class="filter-btn" data-filter="free">Free</button> + <button class="filter-btn" data-filter="paid">Paid</button> + <button class="filter-btn" data-filter="image">Image Upload</button> + <button class="filter-btn" data-filter="file">File Upload</button> + </div> + </section> + + <section class="model-grid" id="modelGrid"> + <!-- Model cards will be dynamically inserted here --> + </section> +</main> + +<footer> + <p>Stay updated with the latest in AI technology.</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..3a111dc --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://aimodelhub.scroll.pub +metaTags +editButton /edit.html +title AI Model Hub - Compare AI Models by Leading Providers +style.css +body.html +script.js \ No newline at end of file diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..972c7a6 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "0d061b71-9942-4ef9-9820-ec28c490fdaa", + "object": "chat.completion", + "created": 1735528316, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\naimodelhub.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://aimodelhub.scroll.pub\nmetaTags\neditButton /edit.html\ntitle AI Model Hub - Compare AI Models by Leading Providers\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>AI Model Hub</h1>\n <p>Your Guide to the Best AI Models in the Industry</p>\n</header>\n\n<main>\n <section class=\"search\">\n <input type=\"text\" id=\"searchInput\" placeholder=\"Search for AI models...\" aria-label=\"Search for AI models\">\n </section>\n\n <section class=\"filters\">\n <h2>Filter by:</h2>\n <div class=\"filter-options\">\n <button class=\"filter-btn\" data-filter=\"all\">All</button>\n <button class=\"filter-btn\" data-filter=\"free\">Free</button>\n <button class=\"filter-btn\" data-filter=\"paid\">Paid</button>\n <button class=\"filter-btn\" data-filter=\"image\">Image Upload</button>\n <button class=\"filter-btn\" data-filter=\"file\">File Upload</button>\n </div>\n </section>\n\n <section class=\"model-grid\" id=\"modelGrid\">\n <!-- Model cards will be dynamically inserted here -->\n </section>\n</main>\n\n<footer>\n <p>Stay updated with the latest in AI technology.</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #2563eb;\n --secondary-color: #1e40af;\n --background-color: #f8fafc;\n --text-color: #1e293b;\n --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--background-color);\n padding: 2rem;\n}\n\nheader {\n text-align: center;\n margin-bottom: 2rem;\n}\n\nheader h1 {\n font-size: 2.5rem;\n color: var(--primary-color);\n margin-bottom: 0.5rem;\n}\n\n.search {\n max-width: 600px;\n margin: 0 auto 2rem;\n}\n\n.search input {\n width: 100%;\n padding: 0.75rem;\n border: 2px solid var(--primary-color);\n border-radius: 0.5rem;\n font-size: 1rem;\n}\n\n.filters {\n text-align: center;\n margin-bottom: 2rem;\n}\n\n.filter-options {\n display: flex;\n justify-content: center;\n gap: 1rem;\n flex-wrap: wrap;\n}\n\n.filter-btn {\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 0.5rem;\n background-color: var(--primary-color);\n color: white;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\n.filter-btn:hover {\n background-color: var(--secondary-color);\n}\n\n.model-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 2rem;\n padding: 1rem;\n}\n\n.model-card {\n background: white;\n border-radius: 0.5rem;\n box-shadow: var(--card-shadow);\n padding: 1.5rem;\n transition: transform 0.3s ease;\n}\n\n.model-card:hover {\n transform: translateY(-5px);\n}\n\n.model-card h3 {\n color: var(--primary-color);\n margin-bottom: 0.5rem;\n}\n\n.model-card p {\n margin-bottom: 0.5rem;\n}\n\nfooter {\n text-align: center;\n margin-top: 2rem;\n padding: 1rem;\n border-top: 1px solid #e2e8f0;\n}\n\n@media (max-width: 768px) {\n body {\n padding: 1rem;\n }\n\n header h1 {\n font-size: 2rem;\n }\n\n .model-grid {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\nconst models = [\n {\n name: \"OpenAI GPT-4\",\n speed: \"Fast\",\n accuracy: \"High\",\n pricing: \"Paid\",\n expertise: \"General Purpose\",\n imageUpload: false,\n fileUpload: true\n },\n {\n name: \"Google Bard\",\n speed: \"Medium\",\n accuracy: \"High\",\n pricing: \"Free\",\n expertise: \"Research & Education\",\n imageUpload: true,\n fileUpload: true\n },\n {\n name: \"Anthropic Claude\",\n speed: \"Fast\",\n accuracy: \"High\",\n pricing: \"Paid\",\n expertise: \"Business & Legal\",\n imageUpload: false,\n fileUpload: false\n },\n {\n name: \"Cohere Command\",\n speed: \"Fast\",\n accuracy: \"Medium\",\n pricing: \"Paid\",\n expertise: \"Marketing & Sales\",\n imageUpload: false,\n fileUpload: true\n }\n];\n\nconst modelGrid = document.getElementById('modelGrid');\nconst searchInput = document.getElementById('searchInput');\nconst filterButtons = document.querySelectorAll('.filter-btn');\n\nfunction renderModels(filteredModels) {\n modelGrid.innerHTML = filteredModels.map(model => `\n <div class=\"model-card\">\n <h3>${model.name}</h3>\n <p><strong>Speed:</strong> ${model.speed}</p>\n <p><strong>Accuracy:</strong> ${model.accuracy}</p>\n <p><strong>Pricing:</strong> ${model.pricing}</p>\n <p><strong>Expertise:</strong> ${model.expertise}</p>\n <p><strong>Image Upload:</strong> ${model.imageUpload ? 'Yes' : 'No'}</p>\n <p><strong>File Upload:</strong> ${model.fileUpload ? 'Yes' : 'No'}</p>\n </div>\n `).join('');\n}\n\nfunction filterModels() {\n const searchTerm = searchInput.value.toLowerCase();\n const activeFilter = document.querySelector('.filter-btn.active')?.dataset.filter || 'all';\n\n const filteredModels = models.filter(model => {\n const matchesSearch = model.name.toLowerCase().includes(searchTerm);\n const matchesFilter = activeFilter === 'all' ||\n (activeFilter === 'free' && model.pricing === 'Free') ||\n (activeFilter === 'paid' && model.pricing === 'Paid') ||\n (activeFilter === 'image' && model.imageUpload) ||\n (activeFilter === 'file' && model.fileUpload);\n return matchesSearch && matchesFilter;\n });\n\n renderModels(filteredModels);\n}\n\nfilterButtons.forEach(button => {\n button.addEventListener('click', () => {\n filterButtons.forEach(btn => btn.classList.remove('active'));\n button.classList.add('active');\n filterModels();\n });\n});\n\nsearchInput.addEventListener('input', filterModels);\n\n// Initial render\nrenderModels(models);\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 274, + "completion_tokens": 1582, + "total_tokens": 1856, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 274 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..b35c3a1 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# aimodelhub.scroll.pub +Website generated by DeepSeek from prompt: 我想建一个介绍各个产商的AI大模型的网站,从生成速度,生成正确率,是否收费,擅长什么领域,是否可以上传图片上传文件等多方面进行比较。要求网站简洁清晰 \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..e1f24d7 --- /dev/null +++ b/script.js @@ -0,0 +1,86 @@ +const models = [ + { + name: "OpenAI GPT-4", + speed: "Fast", + accuracy: "High", + pricing: "Paid", + expertise: "General Purpose", + imageUpload: false, + fileUpload: true + }, + { + name: "Google Bard", + speed: "Medium", + accuracy: "High", + pricing: "Free", + expertise: "Research & Education", + imageUpload: true, + fileUpload: true + }, + { + name: "Anthropic Claude", + speed: "Fast", + accuracy: "High", + pricing: "Paid", + expertise: "Business & Legal", + imageUpload: false, + fileUpload: false + }, + { + name: "Cohere Command", + speed: "Fast", + accuracy: "Medium", + pricing: "Paid", + expertise: "Marketing & Sales", + imageUpload: false, + fileUpload: true + } +]; + +const modelGrid = document.getElementById('modelGrid'); +const searchInput = document.getElementById('searchInput'); +const filterButtons = document.querySelectorAll('.filter-btn'); + +function renderModels(filteredModels) { + modelGrid.innerHTML = filteredModels.map(model => ` + <div class="model-card"> + <h3>${model.name}</h3> + <p><strong>Speed:</strong> ${model.speed}</p> + <p><strong>Accuracy:</strong> ${model.accuracy}</p> + <p><strong>Pricing:</strong> ${model.pricing}</p> + <p><strong>Expertise:</strong> ${model.expertise}</p> + <p><strong>Image Upload:</strong> ${model.imageUpload ? 'Yes' : 'No'}</p> + <p><strong>File Upload:</strong> ${model.fileUpload ? 'Yes' : 'No'}</p> + </div> + `).join(''); +} + +function filterModels() { + const searchTerm = searchInput.value.toLowerCase(); + const activeFilter = document.querySelector('.filter-btn.active')?.dataset.filter || 'all'; + + const filteredModels = models.filter(model => { + const matchesSearch = model.name.toLowerCase().includes(searchTerm); + const matchesFilter = activeFilter === 'all' || + (activeFilter === 'free' && model.pricing === 'Free') || + (activeFilter === 'paid' && model.pricing === 'Paid') || + (activeFilter === 'image' && model.imageUpload) || + (activeFilter === 'file' && model.fileUpload); + return matchesSearch && matchesFilter; + }); + + renderModels(filteredModels); +} + +filterButtons.forEach(button => { + button.addEventListener('click', () => { + filterButtons.forEach(btn => btn.classList.remove('active')); + button.classList.add('active'); + filterModels(); + }); +}); + +searchInput.addEventListener('input', filterModels); + +// Initial render +renderModels(models); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..6a8ce2c --- /dev/null +++ b/style.css @@ -0,0 +1,120 @@ +:root { + --primary-color: #2563eb; + --secondary-color: #1e40af; + --background-color: #f8fafc; + --text-color: #1e293b; + --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Segoe UI', system-ui, sans-serif; + line-height: 1.6; + color: var(--text-color); + background-color: var(--background-color); + padding: 2rem; +} + +header { + text-align: center; + margin-bottom: 2rem; +} + +header h1 { + font-size: 2.5rem; + color: var(--primary-color); + margin-bottom: 0.5rem; +} + +.search { + max-width: 600px; + margin: 0 auto 2rem; +} + +.search input { + width: 100%; + padding: 0.75rem; + border: 2px solid var(--primary-color); + border-radius: 0.5rem; + font-size: 1rem; +} + +.filters { + text-align: center; + margin-bottom: 2rem; +} + +.filter-options { + display: flex; + justify-content: center; + gap: 1rem; + flex-wrap: wrap; +} + +.filter-btn { + padding: 0.5rem 1rem; + border: none; + border-radius: 0.5rem; + background-color: var(--primary-color); + color: white; + cursor: pointer; + transition: background-color 0.3s ease; +} + +.filter-btn:hover { + background-color: var(--secondary-color); +} + +.model-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + gap: 2rem; + padding: 1rem; +} + +.model-card { + background: white; + border-radius: 0.5rem; + box-shadow: var(--card-shadow); + padding: 1.5rem; + transition: transform 0.3s ease; +} + +.model-card:hover { + transform: translateY(-5px); +} + +.model-card h3 { + color: var(--primary-color); + margin-bottom: 0.5rem; +} + +.model-card p { + margin-bottom: 0.5rem; +} + +footer { + text-align: center; + margin-top: 2rem; + padding: 1rem; + border-top: 1px solid #e2e8f0; +} + +@media (max-width: 768px) { + body { + padding: 1rem; + } + + header h1 { + font-size: 2rem; + } + + .model-grid { + grid-template-columns: 1fr; + } +} \ No newline at end of file