Press ESC to close

Web Course 43-基于 AI Chatbot 的二次开发:切换模型

这一节课主要涉及内容:基于AI Teleport的二次开发,将OpenAI和Fireworks模型替换为火山引擎和DeepSeek等国内大模型API,并完成本地环境配置与线上部署。 本课内容 了解 ai-sdk 文档:https://sdk.vercel.ai/docs/introduction 仓库:https://github.com/vercel/ai-chatbot 注册大模型 API 火山注册: 地址:https://www.volcengine.com/experience/ark?utm_term=202502dsinvite&ac=DSASUQY5&rc=S5JCRGKP 模型开通:https://console.volcengine.com/ark/region:ark+cn-beijing/openManagement?LLM={}&OpenTokenDrawer=false(这里很关键,详情见本课笔记最后) 硅基流动注册 : 地址:https://cloud.siliconflow.cn/i/5C3NJlMY 教程:https://app.justincourse.com/i/919/ 官方注册: 地址:https://platform.deepseek.com/api_keys 教程:https://app.justincourse.com/i/906/ 本地环境更新和验证 模型列表:https://console.volcengine.com/ark/region:ark+cn-beijing/model?vendor=Bytedance&view=LIST_VIEW 线上 env repo:https://github.com/justincourses/nextjs-ai-chatbot demo:https://chatbot.justincourse.com/ 问题记录 code:app/(chat)/api/chat/route.ts deepseek 的模型不支持联网以及一些 tools 的调用 后续可以找一些支持这些功能的 llm 替换或者采取一些自定义手段来补足功能 需要更新默认的问题 课后作业 [ ] 注册自己的 API(推荐火山大模型或者硅基流动) [ ] 本地使用 DeepSeek 替换 openai [ ] 线上更新 关于火山引擎 需要注意的是,需要使用的模型要在“开通管理”里打开,否则使用时会报错...

Membership Required

You must be a member to access this content.

View Membership Levels

Already a member? Log in here

✨ 2025 年 12 月结束前(12.31),购买「Web 开发从入门到上线」课程(优惠码 YEAR2025,折后 ¥388.8):👉 点此购买,支持支付宝、银行卡