1 line
5.9 KiB
JSON
1 line
5.9 KiB
JSON
{"repo": "ascend/mindsdk-referenceapps", "files": {"AgentSDK/agent_skills/skills/model-resources-collection/references/sources.md": {"c9541741fb5301a448d16391ea0dd0ba7f983f0a": {"t": 1785595751.463654, "n": 1968, "h": "95412ae13a531bc0", "c": "# 信息来源列表\n\n## 国内云厂商coding plan优惠\n\n### 主要活动页面\n- 阿里云: https://www.aliyun.com/benefit/scene/codingplan\n- 火山引擎: https://www.volcengine.com/activity/codingplan\n- 腾讯云: https://cloud.tencent.com/act/pro/codingplan\n- 移动云: https://ecloud.10086.cn/portal/act/codingplan\n- 京东云: https://docs.jdcloud.com/cn/jdaip/Specialoffer\n- 百度智能云: https://cloud.baidu.com/product/codingplan.html\n- 联通云: https://www.cucloud.cn/activity/kickoffseason.html\n- 华为云: (待获取)\n- 天翼云: (待获取)\n\n### 帮助文档页面(静态HTML,更容易获取)\n- 腾讯云文档: https://cloud.tencent.com/document/product/1772/128947\n- 阿里云帮助: https://help.aliyun.com/zh/model-studio/coding-plan\n- 火山引擎文档: https://www.volcengine.com/docs/82379/1925114\n- 移动云帮助: https://ecloud.10086.cn/op-help-center/doc/article/98320?marketLeoId=codingplan\n- 京东云帮助: https://docs.jdcloud.com/cn/jdaip/Specialoffer\n- 联通云帮助: https://www.cucloud.cn/activity/kickoffseason.html\n\n## 国内大模型公司\n\n### 主要活动页面\n- deepSeek: https://platform.deepseek.com/\n- 智谱AI: https://www.bigmodel.cn/glm-coding\n- 月之暗面: https://www.kimi.com/\n- minimax: https://www.minimaxi.com/\n- 摩尔线程: https://code.mthreads.com/\n- 无问芯穹: https://cloud.infini-ai.com/platform/ai\n- 科大讯飞: https://maas.xfyun.cn/modelSquare?ch=maas-lm-G9n9\n\n## 国外厂商\n\n- OpenAI: https://openai.com/api/pricing/\n- Anthropic: https://www.anthropic.com/api/pricing\n- Google: https://ai.google.dev/pricing\n\n## Coding计划\n\n- GitHub Copilot: https://github.com/features/copilot\n- GitHub Copilot Student: https://github.com/settings/education/benefits\n- JetBrains AI: https://www.jetbrains.com/ai/\n\n## 免费API\n\n- Cloudflare Workers AI: https://developers.cloudflare.com/workers-ai/\n- Hugging Face Inference API: https://huggingface.co/inference\n- GitHub Models: https://github.com/marketplace/models\n- Replicate: https://replicate.com/pricing\n\n## 开发者社区\n\n- V2EX: https://www.v2ex.com/\n- Reddit: https://www.reddit.com/r/LocalLLaMA/\n- Hacker News: https://news.ycombinator.com/\n- ModelScope 魔搭社区: https://modelscope.cn/\n- OpenRouter: https://openrouter.ai/"}}, "AgentSDK/agent_skills/skills/model-resources-collection/scripts/fetch-js-pages.js": {"c9541741fb5301a448d16391ea0dd0ba7f983f0a": {"t": 1785596187.9198456, "n": 2972, "h": "7a3b98cdd3e0352e", "c": "const { chromium } = require('playwright');\n\nconst urls = [\n { name: '火山引擎 Coding Plan', url: 'https://www.volcengine.com/activity/codingplan' },\n { name: '火山引擎 套餐概览', url: 'https://www.volcengine.com/docs/82379/1925114' },\n { name: '移动云 Coding Plan', url: 'https://ecloud.10086.cn/portal/act/codingplan' },\n { name: '京东云 Coding Plan', url: 'https://docs.jdcloud.com/cn/jdaip/Specialoffer' },\n { name: '联通云 Coding Plan', url: 'https://www.cucloud.cn/activity/kickoffseason.html' },\n];\n\nasync function fetchPage(urlInfo) {\n const browser = await chromium.launch({ headless: true });\n const context = await browser.newContext();\n const page = await context.newPage();\n\n console.log(`\\n=== 正在获取: ${urlInfo.name} ===`);\n console.log(`URL: ${urlInfo.url}`);\n\n try {\n await page.goto(urlInfo.url, { \n waitUntil: 'networkidle',\n timeout: 30000 \n });\n\n await page.waitForTimeout(3000);\n\n const title = await page.title();\n console.log(`页面标题: ${title}`);\n\n const bodyText = await page.evaluate(() => document.body.innerText);\n \n console.log(`\\n--- 页面内容摘要 (前500字符): ---`);\n console.log(bodyText.substring(0, 500));\n \n const pricePatterns = ['元/月', '¥', '价格', '套餐', '优惠', '免费', 'API', '模型'];\n const foundPatterns = pricePatterns.filter(p => bodyText.includes(p));\n console.log(`\\n--- 找到的相关关键词: ---`);\n console.log(foundPatterns.join(', '));\n\n const priceMatch = bodyText.match(/(\\d+\\.?\\d*)\\s*元/);\n if (priceMatch) {\n console.log(`\\n找到价格: ${priceMatch[0]}`);\n }\n\n return {\n name: urlInfo.name,\n url: urlInfo.url,\n success: true,\n title: title,\n content: bodyText.substring(0, 2000),\n foundPatterns\n };\n\n } catch (error) {\n console.error(`获取失败: ${error.message}`);\n return {\n name: urlInfo.name,\n url: urlInfo.url,\n success: false,\n error: error.message\n };\n } finally {\n await browser.close();\n }\n}\n\nasync function main() {\n console.log('========================================');\n console.log('使用 Playwright 无头浏览器获取 JavaScript 渲染页面');\n console.log('========================================');\n\n const results = [];\n for (const urlInfo of urls) {\n const result = await fetchPage(urlInfo);\n results.push(result);\n await new Promise(resolve => setTimeout(resolve, 2000));\n }\n\n console.log('\\n\\n========================================');\n console.log('获取结果汇总');\n console.log('========================================');\n\n for (const r of results) {\n console.log(`\\n${r.name}: ${r.success ? '✅ 成功' : '❌ 失败'}`);\n if (r.success) {\n console.log(` 标题: ${r.title}`);\n if (r.foundPatterns) {\n console.log(` 关键词: ${r.foundPatterns.join(', ')}`);\n }\n } else {\n console.log(` 错误: ${r.error}`);\n }\n }\n\n const fs = require('fs');\n fs.writeFileSync('fetch-results.json', JSON.stringify(results, null, 2));\n console.log('\\n\\n结果已保存到 fetch-results.json');\n}\n\nmain().catch(console.error);\n"}}}} |