Skip to content

zookon/claude-in-slack-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

claude-in-slack-api

通过 Slack API 来使用 Claude

.env.template 重命名为 .env 并填入 Slack APP Token 和 Claude Bot ID

运行

pip install -r requirements.txt
pip install sse-starlette
python claude.py

调用接口文档地址:http://127.0.0.1:8088/docs

对话

curl -X 'POST' \
  'http://127.0.0.1:8088/claude/chat' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "prompt": "你好啊"
}'

清除上下文

curl -X 'POST' \
  'http://127.0.0.1:8088/claude/reset' \
  -H 'accept: application/json' \
  -d ''

公众号文章

Claude|媲美ChatGPT,如何免费接入到个人服务

About

claude in slack api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%