V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
rustiiiiii
V2EX  ›  分享创造

基于大模型搞了个图片转网页链接的网站,技术栈和踩坑分享

  •  
  •   rustiiiiii · 22 天前 · 962 次点击

    地址: https://imagetowebsite.dev/

    不知道有啥用,纯玩具 :)

    技术栈:

    • 开发:flask + jinja
    • 部署:aws ec2
    • 网址防护和 SSL:cloudflare
    • 模型 api:gemini
    • 数据分析:google analytics
    • 域名购买:porkbun (便宜+支持支付宝,好评)

    踩坑:

    • 模型 API 选择:本来想用 poe-api-wrapper 的,本地跑没问题,部署到服务器时就开始 RuntimeError: Rate limit exceeded for sending requests to poe.com
    5 条回复    2024-05-30 00:21:33 +08:00
    amlee
        1
    amlee  
       22 天前
    上传图片报 500 错误
    rustiiiiii
        2
    rustiiiiii  
    OP
       21 天前
    @amlee 被 nginx 默认的 client_max_body_size 大小限制了( 1M ),已调整到 4M ,可以再试试
    rustiiiiii
        3
    rustiiiiii  
    OP
       21 天前
    不过 aws ec2 免费的 1c1g 负载一高点就 ssh 连不上,考虑换个 vercel 或 cloudflare 这种云函数来部署了
    ajan
        4
    ajan  
       20 天前
    An error occurred while uploading the file.
    rustiiiiii
        5
    rustiiiiii  
    OP
       19 天前
    @ajan 可以了,ec2 不稳定,要修复问题 ssh 都连不上,哎,后续迁移走
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1442 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 17:25 · PVG 01:25 · LAX 10:25 · JFK 13:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.