- Python 包装器:使用专门的 Python 包装器进行 LLM 交互,确保接口统一和易于管理。
- API 端点:通过清晰定义的 API 端点连接前端与 Python 后端,实现前后端数据传输和功能调用。
- 异步处理:LLM 调用通常耗时较长,应采用异步处理机制,避免阻塞主线程。
- 错误处理与重试:实现健壮的错误处理和重试机制,应对 LLM 服务可能出现的临时故障。
- 安全性:确保 LLM 交互过程中的数据安全,例如敏感信息加密、API 密钥管理等。
- 性能优化:对 LLM 请求和响应进行优化,例如批量请求、数据压缩等,提升整体性能。
Nextjs Basic LLM Integration Rules
指定 LLM 集成规则,包括使用 Python 包装器和 API 端点,适用于所有 LLM 相关文件
Nextjs Basic LLM Integration Rules by liaosw97 · 2fcd69a
npx skillmds@latest add liaosw97/nextjs-basic-llm-integration-rules File contents
---name: nextjs-basic-llm-integration-rulesdescription: 指定 LLM 集成规则,包括使用 Python 包装器和 API 端点,适用于所有 LLM 相关文件---- **Python 包装器**:使用专门的 Python 包装器进行 LLM 交互,确保接口统一和易于管理。- **API 端点**:通过清晰定义的 API 端点连接前端与 Python 后端,实现前后端数据传输和功能调用。- **异步处理**:LLM 调用通常耗时较长,应采用异步处理机制,避免阻塞主线程。- **错误处理与重试**:实现健壮的错误处理和重试机制,应对 LLM 服务可能出现的临时故障。- **安全性**:确保 LLM 交互过程中的数据安全,例如敏感信息加密、API 密钥管理等。- **性能优化**:对 LLM 请求和响应进行优化,例如批量请求、数据压缩等,提升整体性能。
liaosw97/awesome-rules-skills/tree/main/plugins/nextjs/skills/nextjs-basic-llm-integration-rules commit 2fcd69a0e7
Frequently asked questions
Run npx skillmds@latest add liaosw97/nextjs-basic-llm-integration-rules in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
指定 LLM 集成规则,包括使用 Python 包装器和 API 端点,适用于所有 LLM 相关文件 It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
liaosw97 (@liaosw97) published this skill. Their other Agent Skills are listed on their SkillMD profile.