Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

langgptai/BookAI

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

介绍

AI 一键出书 -by 云中江树

书生浦语大模型训练营,提示工程实践开源项目。

在线体验链接: https://book.apps.langgpt.ai/

运行项目

  1. 前往硅基流动注册免费的 API,获取 API_KEY

https://cloud.siliconflow.cn/i/TxUlXG3u

  1. 下载代码到本地
git clone https://github.com/langgptai/BookAI.git
cd BookAI
  1. 配置环境
pip install openai phidata python-dotenv
pip install -r requirements.txt
  1. 使用从硅基流动获取的 API_KEY 配置下面的指令并执行
export API_KEY=sk-xxx
export BASE_URL=https://api.siliconflow.cn/v1
export MODEL_NAME=internlm/internlm2_5-7b-chat

python3 book_writer.py
  1. 生成的书籍保存在 books 文件夹下,使用 markdown 编辑器打开查看。

致谢

About

AI 一键出书 -by 云中江树 书生浦语大模型提示工程教程项目。 在线体验: https://book.apps.langgpt.ai/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.